Struct tree_sitter_graph::ast::DeclareMutable
source · pub struct DeclareMutable {
pub variable: Variable,
pub value: Expression,
pub location: Location,
}
Expand description
A var
statement that declares a new mutable variable
Fields§
§variable: Variable
§value: Expression
§location: Location
Trait Implementations§
source§impl Debug for DeclareMutable
impl Debug for DeclareMutable
source§impl Display for DeclareMutable
impl Display for DeclareMutable
source§impl From<DeclareMutable> for Statement
impl From<DeclareMutable> for Statement
source§fn from(statement: DeclareMutable) -> Statement
fn from(statement: DeclareMutable) -> Statement
Converts to this type from the input type.
source§impl PartialEq for DeclareMutable
impl PartialEq for DeclareMutable
source§fn eq(&self, other: &DeclareMutable) -> bool
fn eq(&self, other: &DeclareMutable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DeclareMutable
impl StructuralPartialEq for DeclareMutable
Auto Trait Implementations§
impl RefUnwindSafe for DeclareMutable
impl Send for DeclareMutable
impl Sync for DeclareMutable
impl Unpin for DeclareMutable
impl UnwindSafe for DeclareMutable
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