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§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.