[][src]Enum liquid_value::State

pub enum State {
    Truthy,
    DefaultValue,
    Empty,
    Blank,
}

Queryable state for a Value.

See tables in https://stackoverflow.com/questions/885414/a-concise-explanation-of-nil-v-empty-v-blank-in-ruby-on-rails

Variants

Truthy

Is the value truthy?

DefaultValue

Is the value the same as default initialized?

Empty

Is the value empty?

Blank

Is the value blank?

Trait Implementations

impl Clone for State[src]

impl Copy for State[src]

impl Debug for State[src]

impl<'de> Deserialize<'de> for State[src]

impl Display for State[src]

impl Eq for State[src]

impl From<State> for ValueCow<'static>[src]

impl From<State> for Value[src]

impl PartialEq<State> for State[src]

impl Serialize for State[src]

impl StructuralEq for State[src]

impl StructuralPartialEq for State[src]

impl ValueView for State[src]

Auto Trait Implementations

impl RefUnwindSafe for State

impl Send for State

impl Sync for State

impl Unpin for State

impl UnwindSafe for State

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<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.