Struct pyo3_stub_gen_derive::gen_stub::method::MethodInfo
source · pub struct MethodInfo {
name: String,
args: Vec<ArgInfo>,
sig: Option<Signature>,
return: Option<Type>,
doc: String,
is_static: bool,
is_class: bool,
}
Fields§
§name: String
§args: Vec<ArgInfo>
§sig: Option<Signature>
§return: Option<Type>
§doc: String
§is_static: bool
§is_class: bool
Implementations§
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
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
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.