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]

Constructor

Trait Implementations

impl Debug for RAMDirectory
[src]

Formats the value using the given formatter. Read more

impl Clone for RAMDirectory
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Directory for RAMDirectory
[src]

Opens a virtual file for read. Read more

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

Removes a file Read more

Returns true iff the file exists

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

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

Important traits for Box<R>

Clones the directory and boxes the clone

Auto Trait Implementations