Struct tantivy::directory::RAMDirectory [] [src]

pub struct RAMDirectory { /* fields omitted */ }

A Directory storing everything in anonymous memory.

It is mainly meant for unit testing. Writes are only made visible upon flushing.

Methods

impl RAMDirectory
[src]

[src]

Constructor

Trait Implementations

impl Debug for RAMDirectory
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for RAMDirectory
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Directory for RAMDirectory
[src]

[src]

Opens a virtual file for read. Read more

[src]

Opens a writer for the virtual file associated with a Path. Read more

[src]

Removes a file Read more

[src]

Returns true iff the file exists

[src]

Reads the full content file that has been written using atomic_write. Read more

[src]

Atomically replace the content of a file with data. Read more

Important traits for Box<R>
[src]

Clones the directory and boxes the clone