pub struct GlobalStateSchema {
pub sem_id: SemId,
pub max_items: u16,
}
Fields§
§sem_id: SemId
§max_items: u16
Implementations§
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§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 StructuralPartialEq for GlobalStateSchema
Auto Trait Implementations§
impl Freeze for GlobalStateSchema
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.