pub enum Table<F, D, Txn> {
Table(TableIndex<F, D, Txn>),
Index(Index<F, D, Txn>),
IndexSlice(IndexSlice<F, D, Txn>),
Limit(Box<Limited<F, D, Txn>>),
Merge(Merged<F, D, Txn>),
Selection(Box<Selection<F, D, Txn, Table<F, D, Txn>>>),
TableSlice(TableSlice<F, D, Txn>),
}Expand description
An ordered collection of Rows which supports BTree-based indexing
Variants
Table(TableIndex<F, D, Txn>)
Index(Index<F, D, Txn>)
IndexSlice(IndexSlice<F, D, Txn>)
Limit(Box<Limited<F, D, Txn>>)
Merge(Merged<F, D, Txn>)
Selection(Box<Selection<F, D, Txn, Table<F, D, Txn>>>)
TableSlice(TableSlice<F, D, Txn>)
Trait Implementations
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> From<TableIndex<F, D, Txn>> for Table<F, D, Txn>
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> From<TableIndex<F, D, Txn>> for Table<F, D, Txn>
Performs the conversion.
type Context = Txn
type Context = Txn
The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
fn from_stream<'life0, 'async_trait, De: Decoder>(
txn: Txn,
decoder: &'life0 mut De
) -> Pin<Box<dyn Future<Output = Result<Self, De::Error>> + Send + 'async_trait>> where
De: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn from_stream<'life0, 'async_trait, De: Decoder>(
txn: Txn,
decoder: &'life0 mut De
) -> Pin<Box<dyn Future<Output = Result<Self, De::Error>> + Send + 'async_trait>> where
De: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Parse this value using the given Decoder.
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableInstance for Table<F, D, Txn> where
Self: Send + Sync,
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableInstance for Table<F, D, Txn> where
Self: Send + Sync,
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableOrder for Table<F, D, Txn> where
Self: Send + Sync,
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableOrder for Table<F, D, Txn> where
Self: Send + Sync,
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableSlice for Table<F, D, Txn> where
Self: Send + Sync,
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableSlice for Table<F, D, Txn> where
Self: Send + Sync,
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableStream for Table<F, D, Txn> where
Self: Send + Sync,
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableStream for Table<F, D, Txn> where
Self: Send + Sync,
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableWrite for Table<F, D, Txn> where
Self: Send + Sync,
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableWrite for Table<F, D, Txn> where
Self: Send + Sync,
Delete the given Row from this table, if present.
Update one row of this table.
Auto Trait Implementations
impl<F, D, Txn> RefUnwindSafe for Table<F, D, Txn> where
D: RefUnwindSafe,
F: RefUnwindSafe,
Txn: RefUnwindSafe,
impl<F, D, Txn> UnwindSafe for Table<F, D, Txn> where
D: UnwindSafe + RefUnwindSafe,
F: UnwindSafe + RefUnwindSafe,
Txn: UnwindSafe + RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns true if self can be cast into the target type T.
Test if value can be cast into Self.
Returns Some(Self) if the source value can be cast into Self, otherwise None.
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.
Test if self can be cast into T.
Returns Some(T) if self can be cast into T, otherwise None.
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
Returns Ok(T) if self can be cast into T, otherwise calls on_err.