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 Row
s 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§
source§impl<F, D, Txn> From<TableIndex<F, D, Txn>> for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
impl<F, D, Txn> From<TableIndex<F, D, Txn>> for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
source§fn from(table: TableIndex<F, D, Txn>) -> Self
fn from(table: TableIndex<F, D, Txn>) -> Self
Converts to this type from the input type.
source§impl<F, D, Txn> FromStream for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node, Inner = D::Inner> + TryFrom<D::Store, Error = TCError>,
D: Dir + TryFrom<D::Store, Error = TCError>,
Txn: Transaction<D>,
D::Read: DirReadFile<F>,
D::Write: DirCreateFile<F>,
D::Store: From<D> + From<F>,
impl<F, D, Txn> FromStream for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node, Inner = D::Inner> + TryFrom<D::Store, Error = TCError>,
D: Dir + TryFrom<D::Store, Error = TCError>,
Txn: Transaction<D>,
D::Read: DirReadFile<F>,
D::Write: DirCreateFile<F>,
D::Store: From<D> + From<F>,
source§impl<'en, F, D, Txn> IntoView<'en, D> for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir + TryFrom<D::Store, Error = TCError>,
Txn: Transaction<D>,
impl<'en, F, D, Txn> IntoView<'en, D> for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir + TryFrom<D::Store, Error = TCError>,
Txn: Transaction<D>,
§type Txn = Txn
type Txn = Txn
The type of
Transaction
which this state supportssource§impl<F, D, Txn> TableInstance for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
Self: Send + Sync,
impl<F, D, Txn> TableInstance for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
Self: Send + Sync,
source§impl<F, D, Txn> TableOrder for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
Self: Send + Sync,
impl<F, D, Txn> TableOrder for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
Self: Send + Sync,
source§impl<F, D, Txn> TableRead for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
Self: Send + Sync,
impl<F, D, Txn> TableRead for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
Self: Send + Sync,
source§impl<F, D, Txn> TableSlice for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
Self: Send + Sync,
impl<F, D, Txn> TableSlice for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
Self: Send + Sync,
source§impl<F, D, Txn> TableStream for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
Self: Send + Sync,
impl<F, D, Txn> TableStream for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
Self: Send + Sync,
type Limit = Table<F, D, Txn>
type Selection = Table<F, D, Txn>
source§fn count<'async_trait>(
self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
fn count<'async_trait>(
self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
Return the number of rows in this
Table
.source§fn limit(self, limit: u64) -> <Self as TableStream>::Limit
fn limit(self, limit: u64) -> <Self as TableStream>::Limit
Limit the number of rows returned by
rows
.source§impl<F, D, Txn> TableWrite for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
Self: Send + Sync,
impl<F, D, Txn> TableWrite for Table<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
Self: Send + Sync,
source§fn delete<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
key: Key
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
key: Key
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Delete the given
Row
from this table, if present.Auto Trait Implementations§
impl<F, D, Txn> !RefUnwindSafe for Table<F, D, Txn>
impl<F, D, Txn> Send for Table<F, D, Txn>where
D: Send + Sync,
F: Send + Sync,
Txn: Send + Sync,
impl<F, D, Txn> Sync for Table<F, D, Txn>where
D: Send + Sync,
F: Send + Sync,
Txn: Send + Sync,
impl<F, D, Txn> Unpin for Table<F, D, Txn>
impl<F, D, Txn> !UnwindSafe for Table<F, D, Txn>
Blanket Implementations§
source§impl<F> Match for F
impl<F> Match for F
source§fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
Returns
true
if self
can be cast into the target type T
.source§impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
source§fn can_cast_from(_: &F) -> bool
fn can_cast_from(_: &F) -> bool
Test if
value
can be cast into Self
.source§fn opt_cast_from(f: F) -> Option<T>
fn opt_cast_from(f: F) -> Option<T>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.source§impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
source§fn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if
self
can be cast into T
.source§fn opt_cast_into(self) -> Option<T>
fn opt_cast_into(self) -> Option<T>
Returns
Some(T)
if self
can be cast into T
, otherwise None
.