pub enum EnableState {
Show 17 variants
True,
False,
Empty,
Yes,
No,
On,
Off,
Enabled,
Disabled,
Ok,
NotOk,
Success,
Failure,
Active,
Inactive,
One,
Zero,
}Variants§
Implementations§
Source§impl EnableState
impl EnableState
Sourcepub fn get_default() -> Self
pub fn get_default() -> Self
Returns the default value for the enum.
Sourcepub fn is_enabled(self) -> bool
pub fn is_enabled(self) -> bool
is_enabled checks if the state represents an enabled condition.
Sourcepub fn is_disabled(self) -> bool
pub fn is_disabled(self) -> bool
is_disabled checks if the state represents a disabled condition.
Trait Implementations§
Source§impl Clone for EnableState
impl Clone for EnableState
impl Copy for EnableState
Source§impl Debug for EnableState
impl Debug for EnableState
Source§impl Default for EnableState
impl Default for EnableState
Source§impl Display for EnableState
impl Display for EnableState
impl Eq for EnableState
Source§impl FromStr for EnableState
impl FromStr for EnableState
Source§impl PartialEq for EnableState
impl PartialEq for EnableState
impl StructuralPartialEq for EnableState
Auto Trait Implementations§
impl Freeze for EnableState
impl RefUnwindSafe for EnableState
impl Send for EnableState
impl Sync for EnableState
impl Unpin for EnableState
impl UnsafeUnpin for EnableState
impl UnwindSafe for EnableState
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