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