Struct concordium_std::AttributeTag
source · #[repr(transparent)]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 for AttributeTag
impl PartialEq 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 for AttributeTag
impl PartialOrd 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.
impl Copy for AttributeTag
impl Eq for AttributeTag
impl StructuralPartialEq for AttributeTag
Auto Trait Implementations§
impl Freeze for AttributeTag
impl RefUnwindSafe for AttributeTag
impl Send for AttributeTag
impl Sync for AttributeTag
impl Unpin for AttributeTag
impl UnwindSafe for AttributeTag
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
source§impl<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
impl<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
source§fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
Attempt to read a structure from a given source and state, failing if
an error occurs during deserialization or reading.