pub enum Abler {
Disable,
Enable,
}Variants§
Implementations§
Source§impl Abler
Type representing some toggle/switch(er)/flag/etc with various conversions suport.
impl Abler
Type representing some toggle/switch(er)/flag/etc with various conversions suport.
pub const DEFAULT_STRICTNESS: bool = true
pub fn new<T: InAbler>(src: T) -> Result<Self, T::Error>
pub fn from_u32_relaxed(src: u32) -> Self
pub fn try_from_u32_strict(src: u32) -> Result<Self, FromU32>
pub fn try_from_char(src: char, strict: bool) -> Result<Self, FromChar>
pub fn try_from_str(src: &str, strict: bool) -> Result<Self, FromStr>
pub fn display(self, kind: Kind) -> Display
Trait Implementations§
Source§impl Ord for Abler
impl Ord for Abler
Source§impl PartialOrd for Abler
impl PartialOrd for Abler
impl Copy for Abler
impl Eq for Abler
impl StructuralPartialEq for Abler
Auto Trait Implementations§
impl Freeze for Abler
impl RefUnwindSafe for Abler
impl Send for Abler
impl Sync for Abler
impl Unpin for Abler
impl UnwindSafe for Abler
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)