pub struct Config {
pub tab_size: usize,
pub indent_guides: bool,
}Fields§
§tab_size: usizeIndent unit in spaces (>>, auto-indent). Tabs land with 0005’s
full option set.
indent_guides: boolIndent guides (dim │ per level) on/off.
Implementations§
Source§impl Config
impl Config
Sourcepub fn print_knobs(&self)
pub fn print_knobs(&self)
strop config: the knobs with live values (KNOBS is the data
source; this is its first consumer — the settings popup is next).
Sourcepub fn load() -> (Self, Option<String>)
pub fn load() -> (Self, Option<String>)
Load the user config; errors are returned as a message for the statusline — the editor always starts with defaults (0005 §2).
pub fn indent(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more