Trait TxExt

Source
pub trait TxExt {
    type Const;

    // Required method
    fn to_const(self) -> Self::Const;
}
Expand description

Extension trait for Rc and Arc that allows up-casting a reference to ReadTransaction or WriteTransaction to ConstTransaction.

Required Associated Types§

Required Methods§

Source

fn to_const(self) -> Self::Const

Returns self as a handle to a ConstTransaction rather than the subtype that was passed in.

This is still a shared handle to the same transaction.

Implementations on Foreign Types§

Source§

impl<'a> TxExt for Rc<ReadTransaction<'a>>

Source§

impl<'a> TxExt for Rc<WriteTransaction<'a>>

Source§

impl<'a> TxExt for Arc<ReadTransaction<'a>>

Source§

impl<'a> TxExt for Arc<WriteTransaction<'a>>

Implementors§