Struct rgbstd::AssignmentType
source · pub struct AssignmentType(/* private fields */);Implementations§
source§impl AssignmentType
impl AssignmentType
pub const fn with(ty: u16) -> AssignmentType
pub fn to_le_bytes(&self) -> [u8; 2]
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 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 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§fn eq(&self, other: &AssignmentType) -> bool
fn eq(&self, other: &AssignmentType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for AssignmentType
impl PartialOrd for AssignmentType
source§fn partial_cmp(&self, other: &AssignmentType) -> Option<Ordering>
fn partial_cmp(&self, other: &AssignmentType) -> 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 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(lim: usize, reader: impl Read) -> 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, lim: usize, writer: impl Write) -> Result<usize, 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
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 StructuralEq for AssignmentType
impl StructuralPartialEq for AssignmentType
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.