pub struct DefDecl {
pub name: String,
pub type_params: Vec<TypeParam>,
pub params: Vec<Param>,
pub return_type: Option<TypeExpr>,
pub body: Expr,
pub span: Span,
}Fields§
§name: String§type_params: Vec<TypeParam>§params: Vec<Param>§return_type: Option<TypeExpr>§body: Expr§span: SpanTrait Implementations§
impl StructuralPartialEq for DefDecl
Auto Trait Implementations§
impl Freeze for DefDecl
impl RefUnwindSafe for DefDecl
impl Send for DefDecl
impl Sync for DefDecl
impl Unpin for DefDecl
impl UnsafeUnpin for DefDecl
impl UnwindSafe for DefDecl
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