Struct boreal_parser::rule::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 for VariableDeclaration
impl PartialEq 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 ==.impl StructuralPartialEq for VariableDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for VariableDeclaration
impl Send for VariableDeclaration
impl Sync for VariableDeclaration
impl Unpin for VariableDeclaration
impl UnwindSafe for VariableDeclaration
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