Enum Mapper
Source pub enum Mapper<'l> {
Heap {
write_cursor: (u64, usize),
mapper: Vec<Section<'l>>,
},
Disk,
}
Expand description
The mapper that holds all the writes to the layer and their location mapping in the database
A read-write version of the mapper on the heap
Fields
The current write cursor to speed up sequential qrites
A read-only version of the mapper on the disk
Creates a new heap-based mapper
Grabs the internal heap representation; if on disk, throw the ReadOnly error
Generates an iterator over the interal mapper, from the stream, size and layer read cursor position
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.