Struct syn::MethodSig [−][src]
pub struct MethodSig {
pub constness: Option<Const>,
pub unsafety: Option<Unsafe>,
pub abi: Option<Abi>,
pub ident: Ident,
pub decl: FnDecl,
}A method's signature in a trait or implementation: unsafe fn initialize(&self).
This type is available if Syn is built with the "full" feature.
Fields
constness: Option<Const>
unsafety: Option<Unsafe>
abi: Option<Abi>
ident: Ident
decl: FnDecl
Trait Implementations
impl ToTokens for MethodSig[src]
impl ToTokens for MethodSigfn to_tokens(&self, tokens: &mut Tokens)[src]
fn to_tokens(&self, tokens: &mut Tokens)Write self to the given Tokens. Read more
fn into_tokens(self) -> Tokens[src]
fn into_tokens(self) -> TokensConvert self directly into a Tokens object. Read more
impl Clone for MethodSig[src]
impl Clone for MethodSig