Enum git_config::values::TrueVariant
source · [−]Expand description
Discriminating enum between implicit and explicit truthy values.
This enum is part of the Boolean
struct.
Variants
Explicit(Cow<'a, str>)
Implicit
For values defined without a = <value>
.
Trait Implementations
sourceimpl<'a> Clone for TrueVariant<'a>
impl<'a> Clone for TrueVariant<'a>
sourcefn clone(&self) -> TrueVariant<'a>
fn clone(&self) -> TrueVariant<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for TrueVariant<'a>
impl<'a> Debug for TrueVariant<'a>
sourceimpl Display for TrueVariant<'_>
impl Display for TrueVariant<'_>
sourceimpl<'a, 'b: 'a> From<&'b TrueVariant<'a>> for &'a [u8]
impl<'a, 'b: 'a> From<&'b TrueVariant<'a>> for &'a [u8]
sourcefn from(t: &'b TrueVariant<'a>) -> Self
fn from(t: &'b TrueVariant<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> Hash for TrueVariant<'a>
impl<'a> Hash for TrueVariant<'a>
sourceimpl<'a> Ord for TrueVariant<'a>
impl<'a> Ord for TrueVariant<'a>
sourceimpl<'a> PartialEq<TrueVariant<'a>> for TrueVariant<'a>
impl<'a> PartialEq<TrueVariant<'a>> for TrueVariant<'a>
sourcefn eq(&self, other: &TrueVariant<'a>) -> bool
fn eq(&self, other: &TrueVariant<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TrueVariant<'a>) -> bool
fn ne(&self, other: &TrueVariant<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> PartialOrd<TrueVariant<'a>> for TrueVariant<'a>
impl<'a> PartialOrd<TrueVariant<'a>> for TrueVariant<'a>
sourcefn partial_cmp(&self, other: &TrueVariant<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &TrueVariant<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a> Eq for TrueVariant<'a>
impl<'a> StructuralEq for TrueVariant<'a>
impl<'a> StructuralPartialEq for TrueVariant<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for TrueVariant<'a>
impl<'a> Send for TrueVariant<'a>
impl<'a> Sync for TrueVariant<'a>
impl<'a> Unpin for TrueVariant<'a>
impl<'a> UnwindSafe for TrueVariant<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more