Struct concordium_std::AttributeTag
source · pub struct AttributeTag(pub u8);
Expand description
Tag of an attribute. See the module attributes for the currently supported attributes.
Tuple Fields§
§0: u8
Trait Implementations§
source§impl Clone for AttributeTag
impl Clone for AttributeTag
source§fn clone(&self) -> AttributeTag
fn clone(&self) -> AttributeTag
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 AttributeTag
impl Debug for AttributeTag
source§impl Deserial for AttributeTag
impl Deserial for AttributeTag
source§fn deserial<R>(source: &mut R) -> Result<AttributeTag, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<AttributeTag, ParseError>where R: Read,
Attempt to read a structure from a given source, failing if an error
occurs during deserialization or reading.
source§impl Ord for AttributeTag
impl Ord for AttributeTag
source§fn cmp(&self, other: &AttributeTag) -> Ordering
fn cmp(&self, other: &AttributeTag) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AttributeTag> for AttributeTag
impl PartialEq<AttributeTag> for AttributeTag
source§fn eq(&self, other: &AttributeTag) -> bool
fn eq(&self, other: &AttributeTag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AttributeTag> for AttributeTag
impl PartialOrd<AttributeTag> for AttributeTag
source§fn partial_cmp(&self, other: &AttributeTag) -> Option<Ordering>
fn partial_cmp(&self, other: &AttributeTag) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serial for AttributeTag
impl Serial for AttributeTag
source§impl<'a> TryFrom<&'a str> for AttributeTag
impl<'a> TryFrom<&'a str> for AttributeTag
§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
source§fn try_from(
v: &'a str
) -> Result<AttributeTag, <AttributeTag as TryFrom<&'a str>>::Error>
fn try_from( v: &'a str ) -> Result<AttributeTag, <AttributeTag as TryFrom<&'a str>>::Error>
Performs the conversion.