[−][src]Struct core_extensions::type_level_bool::True
Represents a type-level true
Trait Implementations
impl MarkerType for True
[src]
const MTVAL: Self
[src]
The value of Self.
fn markertype_ref<'a>() -> &'a Self where
Self: 'a,
[src]
Self: 'a,
Constructs a reference to Self, this is possible because all references to zero sized types are valid. Read more
fn markertype_val() -> Self
[src]
Constructs Self,this is possible because Self implements MarkerType.
impl Boolean for True
[src]
type Not = False
The negation of this type.
const VALUE: bool
[src]
fn if_true<U, F: FnOnce() -> U>(f: F) -> Option<U>
[src]
fn if_false<U, F: FnOnce() -> U>(_: F) -> Option<U>
[src]
If Self==False,runs the closure and returns Some , otherwise returns None.
impl Clone for True
[src]
fn clone(&self) -> True
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for True
[src]
impl Default for True
[src]
impl Debug for True
[src]
impl Not for True
[src]
type Output = False
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl<B> BitAnd<B> for True
[src]
type Output = B
The resulting type after applying the &
operator.
fn bitand(self, v: B) -> Self::Output
[src]
impl<B> BitOr<B> for True
[src]
type Output = True
The resulting type after applying the |
operator.
fn bitor(self, _: B) -> Self::Output
[src]
impl<B: Boolean> BitXor<B> for True
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The error type returned when the conversion fails.
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,