pub struct HirVariable {
pub sigil: Sigil,
pub name: String,
pub kind: VariableKind,
pub access: AccessMode,
}Expand description
A variable reference node.
Fields§
§sigil: SigilVariable sigil.
name: StringVariable name without sigil.
kind: VariableKindLexical or package origin.
access: AccessModeHow this node uses the variable.
Trait Implementations§
Source§impl Clone for HirVariable
impl Clone for HirVariable
Source§fn clone(&self) -> HirVariable
fn clone(&self) -> HirVariable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HirVariable
impl Debug for HirVariable
impl Eq for HirVariable
Source§impl PartialEq for HirVariable
impl PartialEq for HirVariable
Source§fn eq(&self, other: &HirVariable) -> bool
fn eq(&self, other: &HirVariable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HirVariable
Auto Trait Implementations§
impl Freeze for HirVariable
impl RefUnwindSafe for HirVariable
impl Send for HirVariable
impl Sync for HirVariable
impl Unpin for HirVariable
impl UnsafeUnpin for HirVariable
impl UnwindSafe for HirVariable
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