pub struct FnDecl {
pub name: String,
pub params: Vec<Param>,
pub return_type: Option<TypeName>,
pub body: Block,
pub span: Span,
}Expand description
Function declaration (pure, no agent access): fn name(params) -> return_type { body }
Fields§
§name: String§params: Vec<Param>§return_type: Option<TypeName>§body: Block§span: SpanTrait Implementations§
impl StructuralPartialEq for FnDecl
Auto Trait Implementations§
impl Freeze for FnDecl
impl RefUnwindSafe for FnDecl
impl Send for FnDecl
impl Sync for FnDecl
impl Unpin for FnDecl
impl UnwindSafe for FnDecl
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