pub enum EnabledDisabled {
Enabled,
Disabled,
}Variants§
Implementations§
Source§impl EnabledDisabled
impl EnabledDisabled
pub fn is_enabled(self) -> bool
Trait Implementations§
Source§impl Clone for EnabledDisabled
impl Clone for EnabledDisabled
Source§fn clone(&self) -> EnabledDisabled
fn clone(&self) -> EnabledDisabled
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EnabledDisabled
Source§impl Debug for EnabledDisabled
impl Debug for EnabledDisabled
Source§impl Default for EnabledDisabled
impl Default for EnabledDisabled
Source§fn default() -> EnabledDisabled
fn default() -> EnabledDisabled
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnabledDisabled
impl<'de> Deserialize<'de> for EnabledDisabled
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
Source§impl Display for EnabledDisabled
impl Display for EnabledDisabled
impl Eq for EnabledDisabled
Source§impl From<EnabledDisabled> for Value
impl From<EnabledDisabled> for Value
Source§fn from(val: EnabledDisabled) -> Self
fn from(val: EnabledDisabled) -> Self
Converts to this type from the input type.
Source§impl FromStr for EnabledDisabled
impl FromStr for EnabledDisabled
Source§impl PartialEq for EnabledDisabled
impl PartialEq for EnabledDisabled
Source§impl Serialize for EnabledDisabled
impl Serialize for EnabledDisabled
impl StructuralPartialEq for EnabledDisabled
Auto Trait Implementations§
impl Freeze for EnabledDisabled
impl RefUnwindSafe for EnabledDisabled
impl Send for EnabledDisabled
impl Sync for EnabledDisabled
impl Unpin for EnabledDisabled
impl UnsafeUnpin for EnabledDisabled
impl UnwindSafe for EnabledDisabled
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