Enum crowbook::BookOption [] [src]

pub enum BookOption {
    String(String),
    Bool(bool),
    Char(char),
    Int(i32),
    Path(String),
}

Structure for storing a book option

Variants

Stores a String

Stores a boolean

Stores a single char

Stores an int

Stores a path

Stored the same way as a string, but some base path is usually prepended to it

Methods

impl BookOption
[src]

Retuns the BookOption as a &str

Returns the BookOption as a &str, but only if it is a path

Retuns the BookOption as a bool

Retuns the BookOption as a char

Retuns the BookOption as an i32

Trait Implementations

impl Debug for BookOption
[src]

Formats the value using the given formatter.

impl PartialEq for BookOption
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.