Struct microkelvin::GenericLeaf
source · [−]pub struct GenericLeaf(_);
Expand description
A generic leaf
Implementations
sourceimpl GenericLeaf
impl GenericLeaf
sourcepub fn cast<T: Canon>(&self) -> Result<T, CanonError>
pub fn cast<T: Canon>(&self) -> Result<T, CanonError>
Cast the generic leaf to a concrete type
Trait Implementations
sourceimpl Canon for GenericLeaf
impl Canon for GenericLeaf
sourceimpl Clone for GenericLeaf
impl Clone for GenericLeaf
sourcefn clone(&self) -> GenericLeaf
fn clone(&self) -> GenericLeaf
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 GenericLeaf
impl Debug for GenericLeaf
sourceimpl PartialEq<GenericLeaf> for GenericLeaf
impl PartialEq<GenericLeaf> for GenericLeaf
sourcefn eq(&self, other: &GenericLeaf) -> bool
fn eq(&self, other: &GenericLeaf) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GenericLeaf) -> bool
fn ne(&self, other: &GenericLeaf) -> bool
This method tests for !=
.
impl StructuralPartialEq for GenericLeaf
Auto Trait Implementations
impl RefUnwindSafe for GenericLeaf
impl Send for GenericLeaf
impl Sync for GenericLeaf
impl Unpin for GenericLeaf
impl UnwindSafe for GenericLeaf
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