Struct erg_compiler::hir::Block
source · pub struct Block(_);
Implementations§
Trait Implementations§
source§impl FromIterator<Expr> for Block
impl FromIterator<Expr> for Block
source§impl HasType for Block
impl HasType for Block
fn ref_t(&self) -> &Type
source§fn ref_mut_t(&mut self) -> &mut Type
fn ref_mut_t(&mut self) -> &mut Type
x.ref_mut_t()
may panic, in which case x
is Call
and x.ref_t() == Type::Failure
.fn t(&self) -> Type
fn signature_t(&self) -> Option<&Type>
fn signature_mut_t(&mut self) -> Option<&mut Type>
fn inner_ts(&self) -> Vec<Type>
fn lhs_t(&self) -> &Type
fn rhs_t(&self) -> &Type
source§impl IntoIterator for Block
impl IntoIterator for Block
source§impl Locational for Block
impl Locational for Block
source§fn loc(&self) -> Location
fn loc(&self) -> Location
NOTE:
loc
cannot be treated as a light method when self
is a large grammatical element.
If possible, delay the computation by passing &impl Locational
or other means.