pub enum ParsedSet {
NameOnly(String),
Query(String),
Assign {
name: String,
value: String,
},
Negate(String),
Reset(String),
}Expand description
One :set argument, classified by syntax alone.
Produced by parse_set; no option lookup has happened yet, so the
name may not exist and (for ParsedSet::Negate) may not be
boolean. crate::ConfigRegistry::parse_and_set_command and
crate::ConfigRegistry::parse_for_buffer_local give each form
its meaning.
Variants§
NameOnly(String)
:set name – query (non-bool) / boolean-on (bool).
Query(String)
:set name? – always print current value.
Assign
:set name=value – set typed value.
Fields
Negate(String)
:set noname – clear boolean.
Reset(String)
:set name& / :setlocal name& – reset to registered default
/ clear local override. Empty name means “clear all” (:setlocal &).
Trait Implementations§
impl Eq for ParsedSet
impl StructuralPartialEq for ParsedSet
Auto Trait Implementations§
impl Freeze for ParsedSet
impl RefUnwindSafe for ParsedSet
impl Send for ParsedSet
impl Sync for ParsedSet
impl Unpin for ParsedSet
impl UnsafeUnpin for ParsedSet
impl UnwindSafe for ParsedSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.