pub struct AssignmentType(/* private fields */);
Implementations§
Source§impl AssignmentType
impl AssignmentType
pub const ASSET: AssignmentType
pub const fn with(ty: u16) -> AssignmentType
pub fn to_le_bytes(&self) -> [u8; 2]
pub fn is_asset(self) -> bool
Trait Implementations§
Source§impl AsRef<u16> for AssignmentType
impl AsRef<u16> for AssignmentType
Source§impl Borrow<u16> for AssignmentType
impl Borrow<u16> for AssignmentType
Source§impl Clone for AssignmentType
impl Clone for AssignmentType
Source§fn clone(&self) -> AssignmentType
fn clone(&self) -> AssignmentType
Returns a duplicate 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 AssignmentType
impl Debug for AssignmentType
Source§impl<'de> Deserialize<'de> for AssignmentType
impl<'de> Deserialize<'de> for AssignmentType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AssignmentType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AssignmentType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AssignmentType
impl Display for AssignmentType
Source§impl From<u16> for AssignmentType
impl From<u16> for AssignmentType
Source§fn from(v: u16) -> AssignmentType
fn from(v: u16) -> AssignmentType
Converts to this type from the input type.
Source§impl FromStr for AssignmentType
impl FromStr for AssignmentType
Source§impl Hash for AssignmentType
impl Hash for AssignmentType
Source§impl LowerHex for AssignmentType
impl LowerHex for AssignmentType
Source§impl Ord for AssignmentType
impl Ord for AssignmentType
Source§fn cmp(&self, other: &AssignmentType) -> Ordering
fn cmp(&self, other: &AssignmentType) -> 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 AssignmentType
impl PartialEq for AssignmentType
Source§impl PartialOrd for AssignmentType
impl PartialOrd for AssignmentType
Source§impl Serialize for AssignmentType
impl Serialize for AssignmentType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl StrictDecode for AssignmentType
impl StrictDecode for AssignmentType
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<AssignmentType, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for AssignmentType
impl StrictDumb for AssignmentType
fn strict_dumb() -> AssignmentType
Source§impl StrictEncode for AssignmentType
impl StrictEncode for AssignmentType
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictTuple for AssignmentType
impl StrictTuple for AssignmentType
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for AssignmentType
impl StrictType for AssignmentType
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_COMMIT
fn strict_name() -> Option<TypeName>
Source§impl UpperHex for AssignmentType
impl UpperHex for AssignmentType
Source§impl Wrapper for AssignmentType
impl Wrapper for AssignmentType
Source§fn from_inner(inner: <AssignmentType as Wrapper>::Inner) -> AssignmentType
fn from_inner(inner: <AssignmentType as Wrapper>::Inner) -> AssignmentType
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &<AssignmentType as Wrapper>::Inner
fn as_inner(&self) -> &<AssignmentType as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
Source§fn into_inner(self) -> <AssignmentType as Wrapper>::Inner
fn into_inner(self) -> <AssignmentType as Wrapper>::Inner
Unwraps the wrapper returning the inner type
impl Copy for AssignmentType
impl Eq for AssignmentType
impl StrictProduct for AssignmentType
impl StructuralPartialEq for AssignmentType
Auto Trait Implementations§
impl Freeze for AssignmentType
impl RefUnwindSafe for AssignmentType
impl Send for AssignmentType
impl Sync for AssignmentType
impl Unpin for AssignmentType
impl UnwindSafe for AssignmentType
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.