#[non_exhaustive]pub enum SlotKind {
Singleton,
Keyed,
}Expand description
Whether a slot is a singleton or keyed by spell/aura/resource.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl IntoWasmAbi for &SlotKind
impl IntoWasmAbi for &SlotKind
Source§impl IntoWasmAbi for SlotKind
impl IntoWasmAbi for SlotKind
Source§impl OptionIntoWasmAbi for SlotKind
impl OptionIntoWasmAbi for SlotKind
Source§impl Tsify for SlotKind
impl Tsify for SlotKind
const DECL: &'static str = "/**\n * Whether a slot is a singleton or keyed by spell/aura/resource.\n */\nexport type SlotKind = \"singleton\" | \"keyed\";"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Source§impl VectorIntoWasmAbi for SlotKind
impl VectorIntoWasmAbi for SlotKind
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for SlotKind
impl WasmDescribeVector for SlotKind
impl Copy for SlotKind
impl Eq for SlotKind
impl StructuralPartialEq for SlotKind
Auto Trait Implementations§
impl Freeze for SlotKind
impl RefUnwindSafe for SlotKind
impl Send for SlotKind
impl Sync for SlotKind
impl Unpin for SlotKind
impl UnsafeUnpin for SlotKind
impl UnwindSafe for SlotKind
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<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.