Struct erg_compiler::hir::DefBody
source · pub struct DefBody {
pub op: Token,
pub block: Block,
pub id: DefId,
}
Fields§
§op: Token
§block: Block
§id: DefId
Implementations§
Trait Implementations§
source§impl HasType for DefBody
impl HasType for DefBody
fn ref_t(&self) -> &Type
fn ref_mut_t(&mut self) -> Option<&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>
fn lhs_t(&self) -> &Type
fn rhs_t(&self) -> &Type
source§impl Locational for DefBody
impl Locational for DefBody
impl Eq for DefBody
impl StructuralPartialEq for DefBody
Auto Trait Implementations§
impl Freeze for DefBody
impl RefUnwindSafe for DefBody
impl Send for DefBody
impl Sync for DefBody
impl Unpin for DefBody
impl UnwindSafe for DefBody
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)