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