Enum erg_compiler::hir::Accessor
source · [−]Variants
Local(Local)
SelfDot(Local)
Attr(Attribute)
Subscr(Subscript)
Implementations
sourceimpl Accessor
impl Accessor
pub const fn local(symbol: Token, t: Type) -> Self
pub const fn self_dot(name: Token, t: Type) -> Self
pub fn attr(obj: Expr, name: Token, t: Type) -> Self
pub fn subscr(obj: Expr, index: Expr, t: Type) -> Self
pub fn name(&self) -> Option<&Str>
pub fn __name__(&self) -> Option<&str>
Trait Implementations
sourceimpl Locational for Accessor
impl Locational for Accessor
Auto Trait Implementations
impl !RefUnwindSafe for Accessor
impl !Send for Accessor
impl !Sync for Accessor
impl Unpin for Accessor
impl !UnwindSafe for Accessor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more