Enum tree_sitter_graph::ast::Variable
source · pub enum Variable {
Scoped(ScopedVariable),
Unscoped(UnscopedVariable),
}
Expand description
A reference to a variable
Variants§
Scoped(ScopedVariable)
Unscoped(UnscopedVariable)
Trait Implementations§
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 From<UnscopedVariable> for Variable
impl From<UnscopedVariable> for Variable
source§fn from(variable: UnscopedVariable) -> Variable
fn from(variable: UnscopedVariable) -> Variable
Converts to this type from the input type.
source§impl PartialEq for Variable
impl PartialEq for Variable
impl Eq for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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