Struct Signature
pub struct Signature { pub constness: Option<Const>, pub asyncness: Option<Async>, pub safety: Safety, pub abi: Option<Abi>, pub fn_token: Fn, pub ident: Ident, pub generics: Generics, pub paren_token: Paren, pub inputs: Punctuated<FnArg, Comma>, pub variadic: Option<Variadic>, pub output: ReturnType }
A function signature in a trait or implementation: unsafe fn initialize(&self).
Fields
constness: Option<Const>asyncness: Option<Async>safety: Safetyabi: Option<Abi>fn_token: Fnident: Identgenerics: Genericsparen_token: Pareninputs: Punctuated<FnArg, Comma>variadic: Option<Variadic>output: ReturnType
Implementations
impl Signature
fn receiver(&self) -> Option<&Receiver>A method's
selfreceiver, such as&selforself: Box<Self>.
Trait Implementations
impl Clone for Signature
fn clone(&self) -> Self
impl Parse for Signature
fn parse(input: ParseStream<'_>) -> Result<Self>
impl ToTokens for Signature
fn to_tokens(&self, tokens: &mut TokenStream)
Auto Trait Implementations
impl !Send for Signature
impl !Sync for Signature
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
Blanket Implementations
impl<T> Any for Signature
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Signature
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Signature
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Signature
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Signature
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Spanned for Signature
where
T: Spanned + ?Sized,
fn span(&self) -> Span
impl<T> ToOwned for Signature
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Signature
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Signature
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Signature
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>