pub struct Method {
pub attrs: Vec<OdraAttribute>,
pub impl_item: ImplItemMethod,
pub ident: Ident,
pub args: Punctuated<PatType, Comma>,
pub ret: ReturnType,
pub full_sig: Signature,
pub visibility: Visibility,
}Expand description
Fields
attrs: Vec<OdraAttribute>impl_item: ImplItemMethodident: Identargs: Punctuated<PatType, Comma>ret: ReturnTypefull_sig: Signaturevisibility: VisibilityImplementations
Trait Implementations
sourceimpl From<ImplItemMethod> for Method
impl From<ImplItemMethod> for Method
sourcefn from(method: ImplItemMethod) -> Self
fn from(method: ImplItemMethod) -> Self
Converts to this type from the input type.
sourceimpl ToTokens for Method
impl ToTokens for Method
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
sourcefn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
sourcefn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations
impl RefUnwindSafe for Method
impl !Send for Method
impl !Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
sourcefn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty. Read more