Struct boreal_parser::VariableDeclaration
source · pub struct VariableDeclaration {
pub name: String,
pub value: VariableDeclarationValue,
pub modifiers: VariableModifiers,
pub span: Range<usize>,
}Expand description
String declared in a rule.
Fields§
§name: StringName of the string.
value: VariableDeclarationValueValue of the string.
modifiers: VariableModifiersModifiers for the string.
span: Range<usize>Span for the whole declaration
Trait Implementations§
source§impl Clone for VariableDeclaration
impl Clone for VariableDeclaration
source§fn clone(&self) -> VariableDeclaration
fn clone(&self) -> VariableDeclaration
Returns a copy 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 VariableDeclaration
impl Debug for VariableDeclaration
source§impl PartialEq<VariableDeclaration> for VariableDeclaration
impl PartialEq<VariableDeclaration> for VariableDeclaration
source§fn eq(&self, other: &VariableDeclaration) -> bool
fn eq(&self, other: &VariableDeclaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.