[][src]Enum glitchconsole::options::MutOptionVal

pub enum MutOptionVal {
    OString(String),
    OInt(isize),
    OBool(bool),
    OArray(Vec<MutOptionVal>),
    OMap(HashMap<String, MutOptionVal>),
    ONone(),
}

An enum to describe possible options that can be used to configure a Mutation.

Variants

OString(String)

Represents a String

OInt(isize)

Represents an isize

OBool(bool)

Represents a bool

OArray(Vec<MutOptionVal>)

Represents a list of supported values.

OMap(HashMap<String, MutOptionVal>)

Represents a HashMap.

Normally represents a whole MutConfig.

ONone()

Represents an empty value.

Used in the case some options are missing, in which case a Mutation can keep its default.

Trait Implementations

impl Debug for MutOptionVal[src]

Auto Trait Implementations

Blanket Implementations

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.

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

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

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