#[non_exhaustive]pub struct ParsedVimLExpression {
pub ast: Option<VimLExpressionAst>,
pub error: Option<ParseExpressionError>,
pub highlight: Vec<(usize, usize, usize, String)>,
pub len: usize,
}
Expand description
Informations about a parsed VimL expression returned by
parse_expression
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.ast: Option<VimLExpressionAst>
The syntax tree of the parsed expression.
error: Option<ParseExpressionError>
Only present if there was an error parsing the expression.
highlight: Vec<(usize, usize, usize, String)>
Only present if include_highlight
was set to true
when calling
parse_expression
. The first three items of
the tuples represent the line, starting column and ending column
(exclusive) of each highlight, while the last item is the highlight
group name.
len: usize
Number of bytes successfully parsed.
Trait Implementations§
Source§impl Clone for ParsedVimLExpression
impl Clone for ParsedVimLExpression
Source§fn clone(&self) -> ParsedVimLExpression
fn clone(&self) -> ParsedVimLExpression
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParsedVimLExpression
impl Debug for ParsedVimLExpression
Source§impl Default for ParsedVimLExpression
impl Default for ParsedVimLExpression
Source§fn default() -> ParsedVimLExpression
fn default() -> ParsedVimLExpression
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParsedVimLExpression
impl<'de> Deserialize<'de> for ParsedVimLExpression
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
Source§impl FromObject for ParsedVimLExpression
impl FromObject for ParsedVimLExpression
Source§impl PartialEq for ParsedVimLExpression
impl PartialEq for ParsedVimLExpression
impl Eq for ParsedVimLExpression
impl StructuralPartialEq for ParsedVimLExpression
Auto Trait Implementations§
impl Freeze for ParsedVimLExpression
impl RefUnwindSafe for ParsedVimLExpression
impl Send for ParsedVimLExpression
impl Sync for ParsedVimLExpression
impl Unpin for ParsedVimLExpression
impl UnwindSafe for ParsedVimLExpression
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