pub struct ReadonlyTable { /* private fields */ }Implementations§
Source§impl ReadonlyTable
impl ReadonlyTable
pub fn name(&self) -> &str
Sourcepub fn ancestor_segments(self: &Arc<Self>) -> impl Iterator<Item = &Arc<Self>>
pub fn ancestor_segments(self: &Arc<Self>) -> impl Iterator<Item = &Arc<Self>>
Iterates ancestor table segments including self.
pub fn start_mutation(self: &Arc<Self>) -> MutableTable
Trait Implementations§
Source§impl TableSegment for ReadonlyTable
impl TableSegment for ReadonlyTable
fn segment_num_entries(&self) -> usize
fn segment_parent_file(&self) -> Option<&Arc<ReadonlyTable>>
fn segment_get_value(&self, key: &[u8]) -> Option<&[u8]>
fn segment_add_entries_to(&self, mut_table: &mut MutableTable)
fn num_entries(&self) -> usize
fn get_value<'a>(&'a self, key: &[u8]) -> Option<&'a [u8]>
Auto Trait Implementations§
impl Freeze for ReadonlyTable
impl RefUnwindSafe for ReadonlyTable
impl Send for ReadonlyTable
impl Sync for ReadonlyTable
impl Unpin for ReadonlyTable
impl UnsafeUnpin for ReadonlyTable
impl UnwindSafe for ReadonlyTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more