Struct tc_btree::BTreeFile [−][src]
pub struct BTreeFile<F, D, T> { /* fields omitted */ }
Expand description
The base type of a BTree
Implementations
Trait Implementations
impl<F: File<Node>, D: Dir, T: Transaction<D>> BTreeInstance for BTreeFile<F, D, T> where
Self: Clone,
BTreeSlice<F, D, T>: 'static,
[src]
impl<F: File<Node>, D: Dir, T: Transaction<D>> BTreeInstance for BTreeFile<F, D, T> where
Self: Clone,
BTreeSlice<F, D, T>: 'static,
[src]type Slice = BTreeSlice<F, D, T>
fn collator(&self) -> &ValueCollator
[src]
fn collator(&self) -> &ValueCollator
[src]Return a reference to this BTree
’s collator.
fn slice(self, range: Range, reverse: bool) -> TCResult<Self::Slice>
[src]
fn slice(self, range: Range, reverse: bool) -> TCResult<Self::Slice>
[src]Return a slice of this BTree
’s with the given range.
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,
[src]
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,
[src]Return true
if this BTree
has no Key
s.
fn delete<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
fn delete<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Delete all the Key
s in this BTree
.
fn insert<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
key: Key
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
fn insert<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
key: Key
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]fn keys<'a, 'async_trait>(
self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<TCTryStream<'a, Key>>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
[src]
fn keys<'a, 'async_trait>(
self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<TCTryStream<'a, Key>>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
[src]Return a Stream
of this BTree
’s Key
s.
#[must_use]fn count<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
[src]
#[must_use]fn count<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
[src]Return the number of Key
s in this BTree
.
#[must_use]fn try_insert_from<'life0, 'async_trait, S: Stream<Item = TCResult<Key>> + Send + Unpin>(
&'life0 self,
txn_id: TxnId,
keys: S
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
[src]
#[must_use]fn try_insert_from<'life0, 'async_trait, S: Stream<Item = TCResult<Key>> + Send + Unpin>(
&'life0 self,
txn_id: TxnId,
keys: S
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
[src]Insert all the keys from the given Stream
into this BTree
. Read more
impl<F: File<Node>, D: Dir, T: Transaction<D>, I: BTreeInstance> CopyFrom<D, T, I> for BTreeFile<F, D, T>
[src]
impl<F: File<Node>, D: Dir, T: Transaction<D>, I: BTreeInstance> CopyFrom<D, T, I> for BTreeFile<F, D, T>
[src]impl<F: File<Node>, D: Dir, T: Transaction<D>> Persist<D, T> for BTreeFile<F, D, T>
[src]
impl<F: File<Node>, D: Dir, T: Transaction<D>> Persist<D, T> for BTreeFile<F, D, T>
[src]impl<F: File<Node> + Transact, D: Dir, T: Transaction<D>> Transact for BTreeFile<F, D, T>
[src]
impl<F: File<Node> + Transact, D: Dir, T: Transaction<D>> Transact for BTreeFile<F, D, T>
[src]Auto Trait Implementations
impl<F, D, T> RefUnwindSafe for BTreeFile<F, D, T> where
D: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
D: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<F, D, T> Send for BTreeFile<F, D, T> where
D: Send + Sync,
F: Send + Sync,
T: Send + Sync,
D: Send + Sync,
F: Send + Sync,
T: Send + Sync,
impl<F, D, T> Sync for BTreeFile<F, D, T> where
D: Send + Sync,
F: Send + Sync,
T: Send + Sync,
D: Send + Sync,
F: Send + Sync,
T: Send + Sync,
impl<F, D, T> Unpin for BTreeFile<F, D, T>
impl<F, D, T> UnwindSafe for BTreeFile<F, D, T> where
D: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
D: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<F> Match for F
[src]
impl<F> Match for F
[src]fn matches<T>(&self) -> bool where
T: TryCastFrom<Self>,
[src]
fn matches<T>(&self) -> bool where
T: TryCastFrom<Self>,
[src]Returns true
if self
can be cast into the target type T
.
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]pub fn can_cast_from(&F) -> bool
[src]
pub fn can_cast_from(&F) -> bool
[src]Test if value
can be cast into Self
.
pub fn opt_cast_from(f: F) -> Option<T>
[src]
pub fn opt_cast_from(f: F) -> Option<T>
[src]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,
[src]
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]Returns Ok(Self)
if the source value can be cast into Self
, otherwise calls on_err
.
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]pub fn can_cast_into(&self) -> bool
[src]
pub fn can_cast_into(&self) -> bool
[src]Test if self
can be cast into T
.
pub fn opt_cast_into(self) -> Option<T>
[src]
pub fn opt_cast_into(self) -> Option<T>
[src]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,
[src]
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
[src]Returns Ok(T)
if self
can be cast into T
, otherwise calls on_err
.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,