Struct nu_engine::ConfigHolder
source · [−]pub struct ConfigHolder {
pub global_config: Option<NuConfig>,
pub local_configs: Vec<NuConfig>,
pub syntax_config: Option<ThemedPalette>,
}Expand description
ConfigHolder holds information which configs have been loaded.
Fields
global_config: Option<NuConfig>local_configs: Vec<NuConfig>syntax_config: Option<ThemedPalette>Implementations
sourceimpl ConfigHolder
impl ConfigHolder
pub fn new() -> ConfigHolder
pub fn global_config(&self) -> NuConfig
pub fn syntax_colors(&self) -> ThemedPalette
pub fn add_local_cfg(&mut self, cfg: NuConfig)
pub fn set_global_cfg(&mut self, cfg: NuConfig)
pub fn set_syntax_colors(&mut self, cfg: ThemedPalette)
pub fn remove_cfg(&mut self, cfg_path: &ConfigPath)
Trait Implementations
sourceimpl Clone for ConfigHolder
impl Clone for ConfigHolder
sourcefn clone(&self) -> ConfigHolder
fn clone(&self) -> ConfigHolder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConfigHolder
impl Send for ConfigHolder
impl Sync for ConfigHolder
impl Unpin for ConfigHolder
impl UnwindSafe for ConfigHolder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> SpannedItem for T
impl<T> SpannedItem for T
sourceimpl<T> TaggedItem for T
impl<T> TaggedItem for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more