Struct grovedb_merk::tree::TreeNodeInner
source · pub struct TreeNodeInner { /* private fields */ }Expand description
The fields of the Tree type, stored on the heap.
Implementations§
source§impl TreeNodeInner
impl TreeNodeInner
sourcepub fn value_as_owned(self) -> Vec<u8> ⓘ
pub fn value_as_owned(self) -> Vec<u8> ⓘ
Get the value as owned of the key value struct
sourcepub fn value_as_slice(&self) -> &[u8] ⓘ
pub fn value_as_slice(&self) -> &[u8] ⓘ
Get the value as slice of the key value struct
sourcepub fn key_as_owned(self) -> Vec<u8> ⓘ
pub fn key_as_owned(self) -> Vec<u8> ⓘ
Get the key as owned of the key value struct
sourcepub fn key_as_slice(&self) -> &[u8] ⓘ
pub fn key_as_slice(&self) -> &[u8] ⓘ
Get the key as slice of the key value struct
Trait Implementations§
source§impl Clone for TreeNodeInner
impl Clone for TreeNodeInner
source§fn clone(&self) -> TreeNodeInner
fn clone(&self) -> TreeNodeInner
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TreeNodeInner
impl Debug for TreeNodeInner
source§impl Decode for TreeNodeInner
impl Decode for TreeNodeInner
source§impl Encode for TreeNodeInner
impl Encode for TreeNodeInner
source§fn encode_into<__W: Write>(&self, dest: &mut __W) -> Result<()>
fn encode_into<__W: Write>(&self, dest: &mut __W) -> Result<()>
Writes the encoded representation of the value to the destination
writer. Can error due to either a write error from
dest, or an
encoding error for types where invalid values are possible. Read moresource§fn encoding_length(&self) -> Result<usize>
fn encoding_length(&self) -> Result<usize>
Calculates the length of the encoding for this value. Can error for
types where invalid values are possible.
source§impl PartialEq for TreeNodeInner
impl PartialEq for TreeNodeInner
impl StructuralPartialEq for TreeNodeInner
impl Terminated for Box<TreeNodeInner>
impl Terminated for TreeNodeInner
Auto Trait Implementations§
impl Freeze for TreeNodeInner
impl RefUnwindSafe for TreeNodeInner
impl Send for TreeNodeInner
impl Sync for TreeNodeInner
impl Unpin for TreeNodeInner
impl UnwindSafe for TreeNodeInner
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CostsExt for T
impl<T> CostsExt for T
source§fn wrap_with_cost(self, cost: OperationCost) -> CostContext<Self>where
Self: Sized,
fn wrap_with_cost(self, cost: OperationCost) -> CostContext<Self>where
Self: Sized,
Wraps any value into a
CostContext object with provided costs.source§fn wrap_fn_cost(
self,
f: impl FnOnce(&Self) -> OperationCost,
) -> CostContext<Self>where
Self: Sized,
fn wrap_fn_cost(
self,
f: impl FnOnce(&Self) -> OperationCost,
) -> CostContext<Self>where
Self: Sized,
Wraps any value into
CostContext object with costs computed using the
value getting wrapped.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 moresource§impl<T, U> TryFromVersioned<U> for Twhere
T: TryFrom<U>,
impl<T, U> TryFromVersioned<U> for Twhere
T: TryFrom<U>,
source§fn try_from_versioned(
value: U,
_grove_version: &GroveVersion,
) -> Result<T, <T as TryFromVersioned<U>>::Error>
fn try_from_versioned( value: U, _grove_version: &GroveVersion, ) -> Result<T, <T as TryFromVersioned<U>>::Error>
Performs the conversion.
source§impl<T, U> TryIntoVersioned<U> for Twhere
U: TryFromVersioned<T>,
impl<T, U> TryIntoVersioned<U> for Twhere
U: TryFromVersioned<T>,
§type Error = <U as TryFromVersioned<T>>::Error
type Error = <U as TryFromVersioned<T>>::Error
The type returned in the event of a conversion error.
source§fn try_into_versioned(
self,
grove_version: &GroveVersion,
) -> Result<U, <U as TryFromVersioned<T>>::Error>
fn try_into_versioned( self, grove_version: &GroveVersion, ) -> Result<U, <U as TryFromVersioned<T>>::Error>
Performs the conversion.