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>

source

pub fn name_raw(&self) -> &'a Latin1Str

Get the undecoded name of the table

source

pub fn name(&self) -> Cow<'a, str>

Get the name of the table

source

pub fn index_iter(&self, id: u32) -> impl Iterator<Item = Row<'a>>

Get a list of rows by index

source

pub fn bucket_index_iter(&self, id: u32) -> TableRowIter<'a>

Get a list of all rows in the bucket of a given index

source

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

source

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

source

pub fn column_count(&self) -> usize

The amount of columns in this table

source

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

source

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

source

pub fn bucket_iter(&self) -> BucketIter<'a>

Get the bucket iterator

Note: This does some computation, call only once if possible

source

pub fn bucket_count(&self) -> usize

Get the amount of buckets

source

pub fn row_iter(&self) -> TableRowIter<'a>

Get an iterator over all rows

Trait Implementations§

source§

impl<'a> Clone for Table<'a>

source§

fn clone(&self) -> Table<'a>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Copy for Table<'a>

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.