pub struct FuncDecl {
pub attrs: AttrSet,
pub ret_type: Type,
pub params: SmallVec<[FuncParam; 2]>,
pub def: DeclDef<FuncDefBody>,
}
Expand description
Declaration/definition for a Func
: a function.
Fields§
§attrs: AttrSet
§ret_type: Type
§params: SmallVec<[FuncParam; 2]>
§def: DeclDef<FuncDefBody>
Trait Implementations§
source§impl InnerInPlaceTransform for FuncDecl
impl InnerInPlaceTransform for FuncDecl
fn inner_in_place_transform_with(&mut self, transformer: &mut impl Transformer)
source§impl InnerVisit for FuncDecl
impl InnerVisit for FuncDecl
fn inner_visit_with<'a>(&'a self, visitor: &mut impl Visitor<'a>)
Auto Trait Implementations§
impl RefUnwindSafe for FuncDecl
impl Send for FuncDecl
impl Sync for FuncDecl
impl Unpin for FuncDecl
impl UnwindSafe for FuncDecl
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