[][src]Struct lexical_bool::LexicalBool

pub struct LexicalBool(_);

LexicalBool allows parsing truthy-like strings to a bool

It can be deref (e.g. *lb) to get the bool, or compared to a bool (e.g. lb == false)

This uses the values provided by initialize_true_values and initialize_false_values.

If they were not initialized before the first parse, than the defaults of TRUTHY_VALUES and FALSEY_VALUES are used for the life of the thread it was parsed from.

note The parsing is case-insensitive

Trait Implementations

impl Clone for LexicalBool[src]

impl Copy for LexicalBool[src]

impl Default for LexicalBool[src]

impl Eq for LexicalBool[src]

impl PartialEq<LexicalBool> for LexicalBool[src]

impl PartialEq<bool> for LexicalBool[src]

impl Display for LexicalBool[src]

impl Debug for LexicalBool[src]

impl FromStr for LexicalBool[src]

type Err = Error

The associated error which can be returned from parsing.

impl Deref for LexicalBool[src]

type Target = bool

The resulting type after dereferencing.

impl Hash for LexicalBool[src]

impl StructuralPartialEq for LexicalBool[src]

impl StructuralEq for LexicalBool[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]