Trait sanakirja_core::Storable [−][src]
Types that can be stored on disk. This trait may be used in
conjunction with Sized
in order to determine the on-disk size,
or with UnsizedStorable
when special arrangements are needed.
Associated Types
type PageReferences: Iterator<Item = u64>
[src]
An iterator over the offsets to pages contained in this
value. Only values from this crate can generate non-empty
iterators, but combined values (like tuples) must chain the
iterators returned by method page_offsets
.
Required methods
fn page_references(&self) -> Self::PageReferences
[src]
If this value is an offset to another page at offset offset
,
return Some(offset)
. Return None
else.
Provided methods
fn compare<T: LoadPage>(&self, _txn: &T, _b: &Self) -> Ordering
[src]
This is required for B trees, not necessarily for other structures. The default implementation panics.