Enum vim_plugin_metadata::VimNode
source · pub enum VimNode {
StandaloneDocComment {
doc: String,
},
Function {
name: String,
args: Vec<String>,
modifiers: Vec<String>,
doc: Option<String>,
},
Command {
name: String,
modifiers: Vec<String>,
doc: Option<String>,
},
Variable {
name: String,
init_value_token: String,
doc: Option<String>,
},
Flag {
name: String,
default_value_token: Option<String>,
doc: Option<String>,
},
}Expand description
A representation of a single high-level grammar token of vim syntax, such as a comment or function.
Variants§
StandaloneDocComment
Function
Command
Variable
Flag
A defined “Flag” like the mechanism used in google/vim-maktaba.
Implementations§
Trait Implementations§
impl StructuralPartialEq for VimNode
Auto Trait Implementations§
impl Freeze for VimNode
impl RefUnwindSafe for VimNode
impl Send for VimNode
impl Sync for VimNode
impl Unpin for VimNode
impl UnwindSafe for VimNode
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