pub struct MethodInfo {
    pub(super) name: String,
    pub(super) parameters: Parameters,
    pub(super) return: Option<TypeOrOverride>,
    pub(super) doc: String,
    pub(super) type: MethodType,
    pub(super) is_async: bool,
    pub(super) deprecated: Option<DeprecatedInfo>,
    pub(super) type_ignored: Option<IgnoreTarget>,
    pub(super) is_overload: bool,
}Fields§
§name: String§parameters: Parameters§return: Option<TypeOrOverride>§doc: String§type: MethodType§is_async: bool§deprecated: Option<DeprecatedInfo>§type_ignored: Option<IgnoreTarget>§is_overload: boolImplementations§
Source§impl MethodInfo
 
impl MethodInfo
pub fn replace_self(&mut self, self_: &Type)
Trait Implementations§
Source§impl Debug for MethodInfo
 
impl Debug for MethodInfo
Source§impl ToTokens for MethodInfo
 
impl ToTokens for MethodInfo
Source§fn to_tokens(&self, tokens: &mut TokenStream2)
 
fn to_tokens(&self, tokens: &mut TokenStream2)
Source§fn to_token_stream(&self) -> TokenStream
 
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
    Self: Sized,
 
fn into_token_stream(self) -> TokenStreamwhere
    Self: Sized,
Source§impl TryFrom<ImplItemFn> for MethodInfo
 
impl TryFrom<ImplItemFn> for MethodInfo
Source§impl TryFrom<PythonMethodStub> for MethodInfo
 
impl TryFrom<PythonMethodStub> for MethodInfo
Auto Trait Implementations§
impl Freeze for MethodInfo
impl RefUnwindSafe for MethodInfo
impl !Send for MethodInfo
impl !Sync for MethodInfo
impl Unpin for MethodInfo
impl UnwindSafe for MethodInfo
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
§impl<T, U> ExactFrom<T> for Uwhere
    U: TryFrom<T>,
 
impl<T, U> ExactFrom<T> for Uwhere
    U: TryFrom<T>,
fn exact_from(value: T) -> U
§impl<T, U> ExactInto<U> for Twhere
    U: ExactFrom<T>,
 
impl<T, U> ExactInto<U> for Twhere
    U: ExactFrom<T>,
fn exact_into(self) -> U
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T, U> OverflowingInto<U> for Twhere
    U: OverflowingFrom<T>,
 
impl<T, U> OverflowingInto<U> for Twhere
    U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
§impl<T, U> RoundingInto<U> for Twhere
    U: RoundingFrom<T>,
 
impl<T, U> RoundingInto<U> for Twhere
    U: RoundingFrom<T>,
fn rounding_into(self, rm: RoundingMode) -> (U, Ordering)
§impl<T, U> SaturatingInto<U> for Twhere
    U: SaturatingFrom<T>,
 
impl<T, U> SaturatingInto<U> for Twhere
    U: SaturatingFrom<T>,
fn saturating_into(self) -> U
Source§impl<T> Spanned for T
 
impl<T> Spanned for T
Source§fn 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.