pub enum DeclElement {
Sub(Declaration),
Owner(Hash),
}
Variants§
Sub(Declaration)
Owner(Hash)
Implementations§
source§impl DeclElement
impl DeclElement
pub fn to_hash(&self) -> Hash
pub fn from_publickey(key: &PublicKey<AccountAlg>) -> Self
Trait Implementations§
source§impl Clone for DeclElement
impl Clone for DeclElement
source§fn clone(&self) -> DeclElement
fn clone(&self) -> DeclElement
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 DeclElement
impl Debug for DeclElement
source§impl PartialEq<DeclElement> for DeclElement
impl PartialEq<DeclElement> for DeclElement
source§fn eq(&self, other: &DeclElement) -> bool
fn eq(&self, other: &DeclElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DeclElement
impl StructuralEq for DeclElement
impl StructuralPartialEq for DeclElement
Auto Trait Implementations§
impl RefUnwindSafe for DeclElement
impl Send for DeclElement
impl Sync for DeclElement
impl Unpin for DeclElement
impl UnwindSafe for DeclElement
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