Struct microkelvin::GenericTree
source · [−]pub struct GenericTree(_);
Expand description
The generic tree structure, this is a generic version of any Compound tree, which has had it’s leaves and annotations replaced with generic variants of prefixed lengths, so that the tree structure can still be followed even if you don’t know the concrete associated and generic types of the Compound structure that was persisted
Implementations
sourceimpl GenericTree
impl GenericTree
sourcepub fn children(&self) -> &[GenericChild]
pub fn children(&self) -> &[GenericChild]
Provides an iterator over the generic children of the node
Trait Implementations
sourceimpl Canon for GenericTree
impl Canon for GenericTree
sourceimpl Clone for GenericTree
impl Clone for GenericTree
sourcefn clone(&self) -> GenericTree
fn clone(&self) -> GenericTree
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
sourceimpl Debug for GenericTree
impl Debug for GenericTree
sourceimpl Default for GenericTree
impl Default for GenericTree
sourcefn default() -> GenericTree
fn default() -> GenericTree
Returns the “default value” for a type. Read more
sourceimpl PartialEq<GenericTree> for GenericTree
impl PartialEq<GenericTree> for GenericTree
sourcefn eq(&self, other: &GenericTree) -> bool
fn eq(&self, other: &GenericTree) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GenericTree) -> bool
fn ne(&self, other: &GenericTree) -> bool
This method tests for !=
.
impl StructuralPartialEq for GenericTree
Auto Trait Implementations
impl RefUnwindSafe for GenericTree
impl Send for GenericTree
impl Sync for GenericTree
impl Unpin for GenericTree
impl UnwindSafe for GenericTree
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> EncodeToVec for T where
T: Canon,
impl<T> EncodeToVec for T where
T: Canon,
sourcepub fn encode_to_vec(&self) -> Vec<u8, Global>
pub fn encode_to_vec(&self) -> Vec<u8, Global>
Encode Self
into a buffer
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more