Struct tree_sitter_graph::ast::ScopedVariable
source · [−]pub struct ScopedVariable {
pub scope: Box<Expression>,
pub name: Identifier,
pub location: Location,
}Expand description
A reference to a scoped variable
Fields
scope: Box<Expression>name: Identifierlocation: LocationTrait Implementations
sourceimpl Debug for ScopedVariable
impl Debug for ScopedVariable
sourceimpl Display for ScopedVariable
impl Display for ScopedVariable
sourceimpl From<ScopedVariable> for Variable
impl From<ScopedVariable> for Variable
sourcefn from(variable: ScopedVariable) -> Variable
fn from(variable: ScopedVariable) -> Variable
Converts to this type from the input type.
sourceimpl From<ScopedVariable> for Expression
impl From<ScopedVariable> for Expression
sourcefn from(variable: ScopedVariable) -> Expression
fn from(variable: ScopedVariable) -> Expression
Converts to this type from the input type.
sourceimpl PartialEq<ScopedVariable> for ScopedVariable
impl PartialEq<ScopedVariable> for ScopedVariable
sourcefn eq(&self, other: &ScopedVariable) -> bool
fn eq(&self, other: &ScopedVariable) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ScopedVariable) -> bool
fn ne(&self, other: &ScopedVariable) -> bool
This method tests for !=.
impl Eq for ScopedVariable
impl StructuralEq for ScopedVariable
impl StructuralPartialEq for ScopedVariable
Auto Trait Implementations
impl RefUnwindSafe for ScopedVariable
impl !Send for ScopedVariable
impl !Sync for ScopedVariable
impl Unpin for ScopedVariable
impl UnwindSafe for ScopedVariable
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