pub struct Variable<'ctx> { /* private fields */ }Expand description
A global variable symbol.
Implementations§
Source§impl<'ctx> Variable<'ctx>
impl<'ctx> Variable<'ctx>
Sourcepub fn variable_type(&self) -> Option<TypeRef<'ctx>>
pub fn variable_type(&self) -> Option<TypeRef<'ctx>>
Get the type of this variable.
Sourcepub fn context(&self) -> SymbolContext<'ctx>
pub fn context(&self) -> SymbolContext<'ctx>
Get the context where this variable is defined.
Trait Implementations§
impl<'ctx> Copy for Variable<'ctx>
Auto Trait Implementations§
impl<'ctx> Freeze for Variable<'ctx>
impl<'ctx> RefUnwindSafe for Variable<'ctx>
impl<'ctx> !Send for Variable<'ctx>
impl<'ctx> !Sync for Variable<'ctx>
impl<'ctx> Unpin for Variable<'ctx>
impl<'ctx> UnsafeUnpin for Variable<'ctx>
impl<'ctx> UnwindSafe for Variable<'ctx>
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