pub enum OptScope {
Global,
BufferLocal,
}Expand description
Whether an option describes the session or a single buffer.
OptScope::BufferLocal options are never written to a config file:
filetype is redetected per file and readonly is a property of the
buffer at hand, so persisting either would misapply it to every file opened
afterwards.
Variants§
Trait Implementations§
impl Copy for OptScope
impl Eq for OptScope
impl StructuralPartialEq for OptScope
Auto Trait Implementations§
impl Freeze for OptScope
impl RefUnwindSafe for OptScope
impl Send for OptScope
impl Sync for OptScope
impl Unpin for OptScope
impl UnsafeUnpin for OptScope
impl UnwindSafe for OptScope
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