Struct assembly_fdb::mem::Table
source · #[repr(C)]pub struct Table<'a> { /* private fields */ }
Expand description
Reference to a single table
Implementations§
source§impl<'a> Table<'a>
impl<'a> Table<'a>
sourcepub fn index_iter(&self, id: u32) -> impl Iterator<Item = Row<'a>>
pub fn index_iter(&self, id: u32) -> impl Iterator<Item = Row<'a>>
Get a list of rows by index
sourcepub fn bucket_index_iter(&self, id: u32) -> TableRowIter<'a> ⓘ
pub fn bucket_index_iter(&self, id: u32) -> TableRowIter<'a> ⓘ
Get a list of all rows in the bucket of a given index
sourcepub fn column_at(&self, index: usize) -> Option<Column<'a>>
pub fn column_at(&self, index: usize) -> Option<Column<'a>>
Get the column at the index
Note: This does some computation, call only once per colum if possible
sourcepub fn column_iter(&self) -> impl Iterator<Item = Column<'a>> + Clone
pub fn column_iter(&self) -> impl Iterator<Item = Column<'a>> + Clone
Get the column iterator
Note: This does some computation, call only once if possible
sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
The amount of columns in this table
sourcepub fn bucket_at(&self, index: usize) -> Option<Bucket<'a>>
pub fn bucket_at(&self, index: usize) -> Option<Bucket<'a>>
Get the bucket at the index
Note: This does some computation, call only once per bucket if possible
sourcepub fn bucket_for_hash(&self, hash: u32) -> Bucket<'a>
pub fn bucket_for_hash(&self, hash: u32) -> Bucket<'a>
Get the bucket for the given hash
Note: This always calls Table::bucket_at exactly once
sourcepub fn bucket_iter(&self) -> BucketIter<'a> ⓘ
pub fn bucket_iter(&self) -> BucketIter<'a> ⓘ
Get the bucket iterator
Note: This does some computation, call only once if possible
sourcepub fn bucket_count(&self) -> usize
pub fn bucket_count(&self) -> usize
Get the amount of buckets
sourcepub fn row_iter(&self) -> TableRowIter<'a> ⓘ
pub fn row_iter(&self) -> TableRowIter<'a> ⓘ
Get an iterator over all rows
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Table<'a>
impl<'a> RefUnwindSafe for Table<'a>
impl<'a> Send for Table<'a>
impl<'a> Sync for Table<'a>
impl<'a> Unpin for Table<'a>
impl<'a> UnwindSafe for Table<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)