Struct rgbstd::ValencyType
source · pub struct ValencyType(/* private fields */);Implementations§
source§impl ValencyType
impl ValencyType
pub const fn with(ty: u16) -> ValencyType
Trait Implementations§
source§impl AsRef<u16> for ValencyType
impl AsRef<u16> for ValencyType
source§impl Borrow<u16> for ValencyType
impl Borrow<u16> for ValencyType
source§impl Clone for ValencyType
impl Clone for ValencyType
source§fn clone(&self) -> ValencyType
fn clone(&self) -> ValencyType
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 ValencyType
impl Debug for ValencyType
source§impl<'de> Deserialize<'de> for ValencyType
impl<'de> Deserialize<'de> for ValencyType
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ValencyType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ValencyType, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ValencyType
impl Display for ValencyType
source§impl From<u16> for ValencyType
impl From<u16> for ValencyType
source§fn from(v: u16) -> ValencyType
fn from(v: u16) -> ValencyType
Converts to this type from the input type.
source§impl FromStr for ValencyType
impl FromStr for ValencyType
source§impl Hash for ValencyType
impl Hash for ValencyType
source§impl LowerHex for ValencyType
impl LowerHex for ValencyType
source§impl Ord for ValencyType
impl Ord for ValencyType
source§fn cmp(&self, other: &ValencyType) -> Ordering
fn cmp(&self, other: &ValencyType) -> 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 ValencyType
impl PartialEq for ValencyType
source§fn eq(&self, other: &ValencyType) -> bool
fn eq(&self, other: &ValencyType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ValencyType
impl PartialOrd for ValencyType
source§fn partial_cmp(&self, other: &ValencyType) -> Option<Ordering>
fn partial_cmp(&self, other: &ValencyType) -> 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 ValencyType
impl Serialize for ValencyType
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 ValencyType
impl StrictDecode for ValencyType
fn strict_decode( reader: &mut impl TypedRead ) -> Result<ValencyType, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for ValencyType
impl StrictDumb for ValencyType
fn strict_dumb() -> ValencyType
source§impl StrictEncode for ValencyType
impl StrictEncode for ValencyType
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 ValencyType
impl StrictTuple for ValencyType
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for ValencyType
impl StrictType for ValencyType
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
source§impl UpperHex for ValencyType
impl UpperHex for ValencyType
source§impl Wrapper for ValencyType
impl Wrapper for ValencyType
source§fn from_inner(inner: <ValencyType as Wrapper>::Inner) -> ValencyType
fn from_inner(inner: <ValencyType as Wrapper>::Inner) -> ValencyType
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &<ValencyType as Wrapper>::Inner
fn as_inner(&self) -> &<ValencyType as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> <ValencyType as Wrapper>::Inner
fn into_inner(self) -> <ValencyType as Wrapper>::Inner
Unwraps the wrapper returning the inner type
impl Copy for ValencyType
impl Eq for ValencyType
impl StrictProduct for ValencyType
impl StructuralEq for ValencyType
impl StructuralPartialEq for ValencyType
Auto Trait Implementations§
impl RefUnwindSafe for ValencyType
impl Send for ValencyType
impl Sync for ValencyType
impl Unpin for ValencyType
impl UnwindSafe for ValencyType
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.