Struct tc_btree::BTreeSlice
source · pub struct BTreeSlice<F, D, T> { /* private fields */ }
Expand description
A slice of a BTree
Implementations§
source§impl<F: File<Key = NodeId, Block = Node>, D: Dir, T: Transaction<D>> BTreeSlice<F, D, T>
impl<F: File<Key = NodeId, Block = Node>, D: Dir, T: Transaction<D>> BTreeSlice<F, D, T>
Trait Implementations§
source§impl<F, D, T> BTreeInstance for BTreeSlice<F, D, T>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
T: Transaction<D>,
impl<F, D, T> BTreeInstance for BTreeSlice<F, D, T>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
T: Transaction<D>,
type Slice = BTreeSlice<F, D, T>
source§fn collator(&self) -> &ValueCollator
fn collator(&self) -> &ValueCollator
Borrow this
BTree
’s collator.source§fn slice(self, range: Range, reverse: bool) -> TCResult<Self::Slice>
fn slice(self, range: Range, reverse: bool) -> TCResult<Self::Slice>
Return a slice of this
BTree
with the given range.source§fn is_empty<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_empty<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§fn keys<'a, 'async_trait>(
self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<TCBoxTryStream<'a, Key>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn keys<'a, 'async_trait>(
self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<TCBoxTryStream<'a, Key>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
source§impl<F: Clone, D: Clone, T: Clone> Clone for BTreeSlice<F, D, T>
impl<F: Clone, D: Clone, T: Clone> Clone for BTreeSlice<F, D, T>
source§fn clone(&self) -> BTreeSlice<F, D, T>
fn clone(&self) -> BTreeSlice<F, D, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F, D, T> From<BTreeSlice<F, D, T>> for BTree<F, D, T>
impl<F, D, T> From<BTreeSlice<F, D, T>> for BTree<F, D, T>
source§fn from(btree: BTreeSlice<F, D, T>) -> Self
fn from(btree: BTreeSlice<F, D, T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<F, D, T> !RefUnwindSafe for BTreeSlice<F, D, T>
impl<F, D, T> Send for BTreeSlice<F, D, T>where
D: Send + Sync,
F: Send + Sync,
T: Send + Sync,
impl<F, D, T> Sync for BTreeSlice<F, D, T>where
D: Send + Sync,
F: Send + Sync,
T: Send + Sync,
impl<F, D, T> Unpin for BTreeSlice<F, D, T>
impl<F, D, T> !UnwindSafe for BTreeSlice<F, D, T>
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
.