[−][src]Struct broot::conf::Conf
The configuration read from conf.toml file(s)
Fields
files: Vec<PathBuf>
the files used to load this configuration
default_flags: Option<String>
date_time_format: Option<String>
verbs: Vec<VerbConf>
skin: Option<FnvHashMap<String, SkinEntry>>
special_paths: FnvHashMap<Glob, SpecialHandling>
search_modes: Option<FnvHashMap<String, String>>
disable_mouse_capture: Option<bool>
cols_order: Option<ColsConf>
show_selection_mark: Option<bool>
ext_colors: FnvHashMap<String, String>
syntax_theme: Option<String>
true_colors: Option<bool>
icon_theme: Option<String>
modal: Option<bool>
Implementations
impl Conf
[src]
pub fn default_location() -> PathBuf
[src]
return the path to the default conf.toml file. If there's no conf.hjson file in the default conf directory, and if there's a toml file, return this toml file.
pub fn from_default_location() -> Result<Conf, ProgramError>
[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 read_file(&mut self, path: PathBuf) -> Result<(), ProgramError>
[src]
read the configuration from a given path. Assume it exists. Values set in the read file replace the ones of self. Errors are printed on stderr (assuming this function is called before terminal alternation).
Trait Implementations
impl Clone for Conf
[src]
impl Debug for Conf
[src]
impl Default for Conf
[src]
impl<'de> Deserialize<'de> for Conf
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Conf
[src]
impl Send for Conf
[src]
impl Sync for Conf
[src]
impl Unpin for Conf
[src]
impl UnwindSafe for Conf
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,