pub enum ComponentState {
Unknown,
DefaultTrue,
DefaultFalse,
ExplicitTrue,
ExplicitFalse,
}
Expand description
Component state
A component can be exported or enabled. Each of these feature have default values
but these default values can be overriden by the developer. This means they have
essentially four states:
* default to true
,
* default to false
,
* explicitely set to true
,
* explicitely set to false
Variants§
Trait Implementations§
Source§impl Debug for ComponentState
impl Debug for ComponentState
Source§impl PartialEq for ComponentState
impl PartialEq for ComponentState
impl StructuralPartialEq for ComponentState
Auto Trait Implementations§
impl Freeze for ComponentState
impl RefUnwindSafe for ComponentState
impl Send for ComponentState
impl Sync for ComponentState
impl Unpin for ComponentState
impl UnwindSafe for ComponentState
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