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