[][src]Struct broot::conf::Conf

pub struct Conf {
    pub verbs: Vec<VerbConf>,
    pub skin: HashMap<String, CompoundStyle>,
}

Fields

verbs: Vec<VerbConf>skin: HashMap<String, CompoundStyle>

Methods

impl Conf[src]

pub fn default_location() -> PathBuf[src]

pub fn from_default_location() -> Result<Conf, ConfError>[src]

read the configuration file from the default OS specific location. Create it if it doesn't exist

pub fn write_sample(filepath: &Path) -> Result<(), Error>[src]

assume the file doesn't yet exist

pub fn from_file(filepath: &Path) -> Result<Conf, ConfError>[src]

read the configuration from a given path. Assume it exists. stderr is supposed to be a valid solution for displaying errors (i.e. this function is called before or after the terminal alternation)

Auto Trait Implementations

impl RefUnwindSafe for Conf

impl Send for Conf

impl Sync for Conf

impl Unpin for Conf

impl UnwindSafe for Conf

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