pub struct FnSig {
pub name: Ident,
pub generics: Vec<GenericParam>,
pub params: Vec<Param>,
pub ret: Option<Ty>,
pub span: Span,
}Expand description
Name, type parameters, parameters and result.
Fields§
§name: IdentThe name.
generics: Vec<GenericParam>Type parameters.
params: Vec<Param>Parameters, self included.
ret: Option<Ty>The written result type; None means Void.
span: SpanFrom fn to the end of the result type.
Trait Implementations§
impl StructuralPartialEq for FnSig
Auto Trait Implementations§
impl Freeze for FnSig
impl RefUnwindSafe for FnSig
impl Send for FnSig
impl Sync for FnSig
impl Unpin for FnSig
impl UnsafeUnpin for FnSig
impl UnwindSafe for FnSig
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