Enum erg_compiler::hir::Accessor
source · [−]pub enum Accessor {
Ident(Identifier),
Attr(Attribute),
TupleAttr(TupleAttribute),
Subscr(Subscript),
}
Variants
Ident(Identifier)
Attr(Attribute)
TupleAttr(TupleAttribute)
Subscr(Subscript)
Implementations
sourceimpl Accessor
impl Accessor
pub fn private_with_line(name: Str, line: usize) -> Self
pub fn public_with_line(name: Str, line: usize) -> Self
pub const fn private(name: Token, t: Type) -> Self
pub fn attr(obj: Expr, ident: Identifier, t: Type) -> Self
pub fn subscr(obj: Expr, index: Expr, t: Type) -> Self
pub fn show(&self) -> 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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