Enum erg_compiler::hir::Accessor
source · [−]Variants
Local(Local)
Public(Public)
Attr(Attribute)
Subscr(Subscript)
Implementations
sourceimpl Accessor
impl Accessor
pub const fn local(symbol: Token, t: Type) -> Self
pub const fn public(dot: Token, 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 var_full_name(&self) -> Option<String>
pub fn __name__(&self) -> Option<&str>
Trait Implementations
sourceimpl HasType for Accessor
impl HasType for Accessor
fn ref_t(&self) -> &Type
fn ref_mut_t(&mut self) -> &mut Type
fn signature_t(&self) -> Option<&Type>
fn signature_mut_t(&mut self) -> Option<&mut Type>
fn t(&self) -> Type
fn inner_ts(&self) -> Vec<Type, Global>
fn lhs_t(&self) -> &Type
fn rhs_t(&self) -> &Type
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