Struct Signature
struct Signature { ... }
A function signature in a trait or implementation: unsafe fn initialize(&self).
Fields
constness: Option<Const>asyncness: Option<Async>unsafety: Option<Unsafe>abi: Option<Abi>fn_token: Fnident: Identgenerics: Genericsparen_token: Pareninputs: Punctuated<FnArg, Comma>variadic: Option<Variadic>output: ReturnType
Implementations
impl Signature
fn receiver(self: &Self) -> Option<&Receiver>A method's
selfreceiver, such as&selforself: Box<Self>.
impl Clone for Signature
fn clone(self: &Self) -> Self
impl Debug for Signature
fn fmt(self: &Self, formatter: &mut Formatter<'_>) -> Result
impl Eq for Signature
impl Freeze for Signature
impl Hash for Signature
fn hash<H>(self: &Self, state: &mut H) where H: Hasher
impl Parse for Signature
fn parse(input: ParseStream<'_>) -> Result<Self>
impl PartialEq for Signature
fn eq(self: &Self, other: &Self) -> bool
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl ToTokens for Signature
fn to_tokens(self: &Self, tokens: &mut TokenStream)
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
impl<T> Any for Signature
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Signature
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Signature
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Signature
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Signature
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Spanned for Signature
fn span(self: &Self) -> Span
impl<T> ToOwned for Signature
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for Signature
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Signature
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Signature
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>