Enum crowbook::BookOption
[−]
[src]
pub enum BookOption { String(String), Bool(bool), Char(char), Int(i32), Path(String), }
Structure for storing a book option
Variants
String(String)
Stores a String
Bool(bool)
Stores a boolean
Char(char)
Stores a single char
Int(i32)
Stores an int
Path(String)
Stores a path
Stored the same way as a string, but some base path is usually prepended to it
Methods
impl BookOption
[src]
fn as_str(&self) -> Result<&str>
Retuns the BookOption as a &str
fn as_path(&self) -> Result<&str>
Returns the BookOption as a &str, but only if it is a path
fn as_bool(&self) -> Result<bool>
Retuns the BookOption as a bool
fn as_char(&self) -> Result<char>
Retuns the BookOption as a char
fn as_i32(&self) -> Result<i32>
Retuns the BookOption as an i32
Trait Implementations
impl Debug for BookOption
[src]
impl PartialEq for BookOption
[src]
fn eq(&self, __arg_0: &BookOption) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BookOption) -> bool
This method tests for !=
.