Struct tc_btree::BTreeSlice
source · [−]pub struct BTreeSlice<F, D, T> { /* private fields */ }
Expand description
A slice of a BTree
Implementations
sourceimpl<F: File<Node>, D: Dir, T: Transaction<D>> BTreeSlice<F, D, T>
impl<F: File<Node>, D: Dir, T: Transaction<D>> BTreeSlice<F, D, T>
Trait Implementations
sourceimpl<F: File<Node>, D: Dir, T: Transaction<D>> BTreeInstance for BTreeSlice<F, D, T> where
BTreeFile<F, D, T>: Clone + 'static,
impl<F: File<Node>, D: Dir, T: Transaction<D>> BTreeInstance for BTreeSlice<F, D, T> where
BTreeFile<F, D, T>: Clone + 'static,
type Slice = BTreeSlice<F, D, T>
sourcefn collator(&self) -> &ValueCollator
fn collator(&self) -> &ValueCollator
Borrow this BTree
’s collator.
sourcefn 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.
sourcefn is_empty<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn is_empty<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Return true
if this BTree
has no Key
s.
sourcefn keys<'a, 'async_trait>(
self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<TCBoxTryStream<'a, Key>>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
fn keys<'a, 'async_trait>(
self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<TCBoxTryStream<'a, Key>>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
Return a Stream
of this BTree
’s Key
s.
sourceimpl<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>
sourcefn clone(&self) -> BTreeSlice<F, D, T>
fn clone(&self) -> BTreeSlice<F, D, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<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>
sourcefn 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> where
D: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
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> where
D: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F> Match for F
impl<F> Match for F
sourcefn matches<T>(&self) -> bool where
T: TryCastFrom<Self>,
fn matches<T>(&self) -> bool where
T: TryCastFrom<Self>,
Returns true
if self
can be cast into the target type T
.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
sourcefn can_cast_from(&F) -> bool
fn can_cast_from(&F) -> bool
Test if value
can be cast into Self
.
sourcefn 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
.
sourcefn 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
.
sourceimpl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
sourcefn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if self
can be cast into T
.
sourcefn 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
.
sourcefn 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
.