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
sourceimpl From<ScopedVariable> for Variable
impl From<ScopedVariable> for Variable
sourcefn from(variable: ScopedVariable) -> Variable
fn from(variable: ScopedVariable) -> Variable
Performs the conversion.
sourceimpl From<UnscopedVariable> for Variable
impl From<UnscopedVariable> for Variable
sourcefn from(variable: UnscopedVariable) -> Variable
fn from(variable: UnscopedVariable) -> Variable
Performs the conversion.
impl Eq for Variable
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more