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: Variablevalue: Expressionlocation: LocationTrait Implementations
sourceimpl Debug for DeclareMutable
impl Debug for DeclareMutable
sourceimpl Display for DeclareMutable
impl Display for DeclareMutable
sourceimpl From<DeclareMutable> for Statement
impl From<DeclareMutable> for Statement
sourcefn from(statement: DeclareMutable) -> Statement
fn from(statement: DeclareMutable) -> Statement
Converts to this type from the input type.
sourceimpl PartialEq<DeclareMutable> for DeclareMutable
impl PartialEq<DeclareMutable> for DeclareMutable
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &DeclareMutable) -> bool
fn ne(&self, other: &DeclareMutable) -> bool
This method tests for !=.
impl Eq for DeclareMutable
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more