pub struct BoolConfig<const DEFAULT: bool>(/* private fields */);Expand description
You can create this type like true.into() or false.into().
Implementations§
Trait Implementations§
source§impl<const DEFAULT: bool> Clone for BoolConfig<DEFAULT>
 
impl<const DEFAULT: bool> Clone for BoolConfig<DEFAULT>
source§fn clone(&self) -> BoolConfig<DEFAULT>
 
fn clone(&self) -> BoolConfig<DEFAULT>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl<const DEFAULT: bool> Debug for BoolConfig<DEFAULT>
 
impl<const DEFAULT: bool> Debug for BoolConfig<DEFAULT>
source§impl<const DEFAULT: bool> Default for BoolConfig<DEFAULT>
 
impl<const DEFAULT: bool> Default for BoolConfig<DEFAULT>
source§fn default() -> BoolConfig<DEFAULT>
 
fn default() -> BoolConfig<DEFAULT>
Returns the “default value” for a type. Read more
source§impl<'de, const DEFAULT: bool> Deserialize<'de> for BoolConfig<DEFAULT>
 
impl<'de, const DEFAULT: bool> Deserialize<'de> for BoolConfig<DEFAULT>
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<const DEFAULT: bool> From<BoolConfig<DEFAULT>> for bool
 
impl<const DEFAULT: bool> From<BoolConfig<DEFAULT>> for bool
source§fn from(v: BoolConfig<DEFAULT>) -> Self
 
fn from(v: BoolConfig<DEFAULT>) -> Self
Converts to this type from the input type.
source§impl<const DEFAULT: bool> Hash for BoolConfig<DEFAULT>
 
impl<const DEFAULT: bool> Hash for BoolConfig<DEFAULT>
source§impl<const DEFAULT: bool> Merge for BoolConfig<DEFAULT>
 
impl<const DEFAULT: bool> Merge for BoolConfig<DEFAULT>
source§impl<const DEFAULT: bool> Ord for BoolConfig<DEFAULT>
 
impl<const DEFAULT: bool> Ord for BoolConfig<DEFAULT>
source§fn cmp(&self, other: &BoolConfig<DEFAULT>) -> Ordering
 
fn cmp(&self, other: &BoolConfig<DEFAULT>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<const DEFAULT: bool> PartialEq for BoolConfig<DEFAULT>
 
impl<const DEFAULT: bool> PartialEq for BoolConfig<DEFAULT>
source§impl<const DEFAULT: bool> PartialOrd for BoolConfig<DEFAULT>
 
impl<const DEFAULT: bool> PartialOrd for BoolConfig<DEFAULT>
source§impl<const DEFAULT: bool> Serialize for BoolConfig<DEFAULT>
 
impl<const DEFAULT: bool> Serialize for BoolConfig<DEFAULT>
impl<const DEFAULT: bool> Copy for BoolConfig<DEFAULT>
impl<const DEFAULT: bool> Eq for BoolConfig<DEFAULT>
impl<const DEFAULT: bool> StructuralPartialEq for BoolConfig<DEFAULT>
Auto Trait Implementations§
impl<const DEFAULT: bool> Freeze for BoolConfig<DEFAULT>
impl<const DEFAULT: bool> RefUnwindSafe for BoolConfig<DEFAULT>
impl<const DEFAULT: bool> Send for BoolConfig<DEFAULT>
impl<const DEFAULT: bool> Sync for BoolConfig<DEFAULT>
impl<const DEFAULT: bool> Unpin for BoolConfig<DEFAULT>
impl<const DEFAULT: bool> UnwindSafe for BoolConfig<DEFAULT>
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
§impl<T> CallHasher for T
 
impl<T> CallHasher for T
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.