Struct ciruela::index::InMemoryIndexes
[−]
[src]
pub struct InMemoryIndexes { /* fields omitted */ }
A GetIndex implementation that serves indexes from memory
Usually this is what you want because index is small enough, and client finishes work as quick as image is served
Methods
impl InMemoryIndexes
[src]
pub fn new() -> InMemoryIndexes
[src]
New in-memory index collection
pub fn register_index(&self, data: &[u8]) -> Result<ImageId, IndexError>
[src]
Register index and return image id
ImageId returned here for convenience and a bit microoptimization. You can get it from the image data on your own.
Trait Implementations
impl Debug for InMemoryIndexes
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for InMemoryIndexes
[src]
fn clone(&self) -> InMemoryIndexes
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more