pub struct FunctionSig {
pub docs: Vec<Spanned<String>>,
pub is_async: bool,
pub name: Spanned<String>,
pub generics: Vec<TypeParam>,
pub params: Vec<Param>,
pub return_ty: Option<Spanned<Type>>,
pub where_clause: Vec<WhereBound>,
}Expand description
A function signature without a body.
Fields§
§docs: Vec<Spanned<String>>The /// lines before it, one entry per line, holding the text after
the /// (spec
docs/superpowers/specs/2026-10-07-phase-3-1-formatter-design.md §4).
is_async: bool§name: Spanned<String>§generics: Vec<TypeParam>§params: Vec<Param>§return_ty: Option<Spanned<Type>>§where_clause: Vec<WhereBound>Trait Implementations§
Source§impl Clone for FunctionSig
impl Clone for FunctionSig
Auto Trait Implementations§
impl Freeze for FunctionSig
impl RefUnwindSafe for FunctionSig
impl Send for FunctionSig
impl Sync for FunctionSig
impl Unpin for FunctionSig
impl UnsafeUnpin for FunctionSig
impl UnwindSafe for FunctionSig
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