pub struct FnSig {
pub name: Ident,
pub generics: Vec<GenericParam>,
pub params: Vec<Param>,
pub ret: Option<Ty>,
pub where_bounds: Vec<GenericParam>,
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.
where_bounds: Vec<GenericParam>where T: Bound after the result type: bounds that a method adds to the type parameters
of its impl block (spec chapter 4, section 8.6).
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