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: Identifier
§location: Location
Trait Implementations§
source§impl Debug for ScopedVariable
impl Debug for ScopedVariable
source§impl Display for ScopedVariable
impl Display for ScopedVariable
source§impl From<ScopedVariable> for Expression
impl From<ScopedVariable> for Expression
source§fn from(variable: ScopedVariable) -> Expression
fn from(variable: ScopedVariable) -> Expression
Converts to this type from the input type.
source§impl From<ScopedVariable> for Variable
impl From<ScopedVariable> for Variable
source§fn from(variable: ScopedVariable) -> Variable
fn from(variable: ScopedVariable) -> Variable
Converts to this type from the input type.
source§impl PartialEq for ScopedVariable
impl PartialEq for ScopedVariable
source§fn 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 ==
.impl Eq 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§
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