Enum microkelvin::GenericChild
source · [−]pub enum GenericChild {
Empty,
Leaf(GenericLeaf),
Link(Id, GenericAnnotation),
}
Expand description
A generic child of a collection
Variants
Empty
Child is empty
Leaf(GenericLeaf)
Child is a leaf
Link(Id, GenericAnnotation)
Child is a link
Trait Implementations
sourceimpl Canon for GenericChild
impl Canon for GenericChild
sourceimpl Clone for GenericChild
impl Clone for GenericChild
sourcefn clone(&self) -> GenericChild
fn clone(&self) -> GenericChild
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 GenericChild
impl Debug for GenericChild
sourceimpl PartialEq<GenericChild> for GenericChild
impl PartialEq<GenericChild> for GenericChild
sourcefn eq(&self, other: &GenericChild) -> bool
fn eq(&self, other: &GenericChild) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GenericChild) -> bool
fn ne(&self, other: &GenericChild) -> bool
This method tests for !=
.
impl StructuralPartialEq for GenericChild
Auto Trait Implementations
impl RefUnwindSafe for GenericChild
impl Send for GenericChild
impl Sync for GenericChild
impl Unpin for GenericChild
impl UnwindSafe for GenericChild
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more