Struct rocksdb::BoundColumnFamily
source · [−]pub struct BoundColumnFamily<'a> { /* private fields */ }
Expand description
A specialized opaque type used to represent a column family by the MultiThreaded
mode. Clone (and Copy) is derived to behave like &ColumnFamily
(this is used for
single-threaded mode). Clone
/Copy
is safe because this lifetime is bound to DB like
iterators/snapshots. On top of it, this is as cheap and small as &ColumnFamily
because
this only has a single pointer-wide field.
Trait Implementations
sourceimpl<'a> AsColumnFamilyRef for BoundColumnFamily<'a>
impl<'a> AsColumnFamilyRef for BoundColumnFamily<'a>
fn inner(&self) -> *mut rocksdb_column_family_handle_t
sourceimpl<'a> Clone for BoundColumnFamily<'a>
impl<'a> Clone for BoundColumnFamily<'a>
sourcefn clone(&self) -> BoundColumnFamily<'a>
fn clone(&self) -> BoundColumnFamily<'a>
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
impl<'a> Copy for BoundColumnFamily<'a>
impl<'a> Send for BoundColumnFamily<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for BoundColumnFamily<'a>
impl<'a> !Sync for BoundColumnFamily<'a>
impl<'a> Unpin for BoundColumnFamily<'a>
impl<'a> UnwindSafe for BoundColumnFamily<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more