pub enum ItemKind {
Static,
Interactive(Interactive),
}
Expand description
The mode
Variants§
Implementations§
Source§impl ItemKind
impl ItemKind
Sourcepub const fn is_static(&self) -> bool
pub const fn is_static(&self) -> bool
Returns true if the enum is ItemKind::Static otherwise false
Sourcepub const fn is_interactive(&self) -> bool
pub const fn is_interactive(&self) -> bool
Returns true if the enum is ItemKind::Interactive otherwise false
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ItemKind
impl<'de> Deserialize<'de> for ItemKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ItemKind
impl RefUnwindSafe for ItemKind
impl Send for ItemKind
impl Sync for ItemKind
impl Unpin for ItemKind
impl UnwindSafe for ItemKind
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