pub struct OwnedValueLease { /* private fields */ }Expand description
An owned lease over one value in an immutable packed leaf.
The byte slice remains valid for the lifetime of this object even if the shared node cache evicts the leaf. Native bindings use this as the owner behind callback-scoped zero-copy value views.
Implementations§
Trait Implementations§
Source§impl Clone for OwnedValueLease
impl Clone for OwnedValueLease
Source§fn clone(&self) -> OwnedValueLease
fn clone(&self) -> OwnedValueLease
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OwnedValueLease
impl RefUnwindSafe for OwnedValueLease
impl Send for OwnedValueLease
impl Sync for OwnedValueLease
impl Unpin for OwnedValueLease
impl UnsafeUnpin for OwnedValueLease
impl UnwindSafe for OwnedValueLease
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more