[][src]Enum cmus_status_line::cmus_status::output::FormatExpression

pub enum FormatExpression {
    True,
    False,
    And(Box<FormatExpression>, Box<FormatExpression>),
    Or(Box<FormatExpression>, Box<FormatExpression>),
    Not(Box<FormatExpression>),
    IsStatus(CmusPlaybackStatus),
}

Variants

True

Always returns true.

False

Always returns false.

Returns true if both of the given expressions are true.

Returns true if either of the given expressions are true.

Inverts the given expression.

IsStatus(CmusPlaybackStatus)

Returns true if the given CmusPlaybackStatus is the currently playing song's CmusPlaybackStatus.

Trait Implementations

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

Auto Trait Implementations

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, 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.