Struct rgbstd::GlobalStateSchema 
source · pub struct GlobalStateSchema {
    pub sem_id: SemId,
    pub max_items: u16,
}Fields§
§sem_id: SemId§max_items: u16Implementations§
source§impl GlobalStateSchema
 
impl GlobalStateSchema
pub fn once(sem_id: SemId) -> GlobalStateSchema
pub fn many(sem_id: SemId) -> GlobalStateSchema
Trait Implementations§
source§impl Clone for GlobalStateSchema
 
impl Clone for GlobalStateSchema
source§fn clone(&self) -> GlobalStateSchema
 
fn clone(&self) -> GlobalStateSchema
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 GlobalStateSchema
 
impl Debug for GlobalStateSchema
source§impl<'de> Deserialize<'de> for GlobalStateSchema
 
impl<'de> Deserialize<'de> for GlobalStateSchema
source§fn deserialize<__D>(
    __deserializer: __D
) -> Result<GlobalStateSchema, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>( __deserializer: __D ) -> Result<GlobalStateSchema, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for GlobalStateSchema
 
impl Hash for GlobalStateSchema
source§impl PartialEq for GlobalStateSchema
 
impl PartialEq for GlobalStateSchema
source§fn eq(&self, other: &GlobalStateSchema) -> bool
 
fn eq(&self, other: &GlobalStateSchema) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for GlobalStateSchema
 
impl Serialize for GlobalStateSchema
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 GlobalStateSchema
 
impl StrictDecode for GlobalStateSchema
fn strict_decode( reader: &mut impl TypedRead ) -> Result<GlobalStateSchema, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for GlobalStateSchema
 
impl StrictDumb for GlobalStateSchema
fn strict_dumb() -> GlobalStateSchema
source§impl StrictEncode for GlobalStateSchema
 
impl StrictEncode for GlobalStateSchema
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 StrictStruct for GlobalStateSchema
 
impl StrictStruct for GlobalStateSchema
const ALL_FIELDS: &'static [&'static str] = _
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for GlobalStateSchema
 
impl StrictType for GlobalStateSchema
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
impl Eq for GlobalStateSchema
impl StrictProduct for GlobalStateSchema
impl StructuralEq for GlobalStateSchema
impl StructuralPartialEq for GlobalStateSchema
Auto Trait Implementations§
impl RefUnwindSafe for GlobalStateSchema
impl Send for GlobalStateSchema
impl Sync for GlobalStateSchema
impl Unpin for GlobalStateSchema
impl UnwindSafe for GlobalStateSchema
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.