pub enum TruthinessKind {
AlwaysTruthy,
AlwaysFalsy,
Sometimes,
Unknown,
}Expand description
Classification of a type’s truthiness behavior.
Variants§
AlwaysTruthy
Always truthy (non-empty object, non-zero number, etc.)
AlwaysFalsy
Always falsy (0, “”, null, undefined, false)
Sometimes
Could be either (union of truthy and falsy)
Unknown
Unknown truthiness (any, unknown)
Trait Implementations§
Source§impl Clone for TruthinessKind
impl Clone for TruthinessKind
Source§fn clone(&self) -> TruthinessKind
fn clone(&self) -> TruthinessKind
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 Debug for TruthinessKind
impl Debug for TruthinessKind
Source§impl PartialEq for TruthinessKind
impl PartialEq for TruthinessKind
impl Copy for TruthinessKind
impl Eq for TruthinessKind
impl StructuralPartialEq for TruthinessKind
Auto Trait Implementations§
impl Freeze for TruthinessKind
impl RefUnwindSafe for TruthinessKind
impl Send for TruthinessKind
impl Sync for TruthinessKind
impl Unpin for TruthinessKind
impl UnsafeUnpin for TruthinessKind
impl UnwindSafe for TruthinessKind
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> 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.