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 duplicate 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte