pub struct PyFunctionInfo {
pub(crate) name: String,
pub(crate) parameters: Parameters,
pub(crate) return: Option<TypeOrOverride>,
pub(crate) doc: String,
pub(crate) module: Option<String>,
pub(crate) is_async: bool,
pub(crate) deprecated: Option<DeprecatedInfo>,
pub(crate) type_ignored: Option<IgnoreTarget>,
pub(crate) is_overload: bool,
pub(crate) index: usize,
}Fields§
§name: String§parameters: Parameters§return: Option<TypeOrOverride>§doc: String§module: Option<String>§is_async: bool§deprecated: Option<DeprecatedInfo>§type_ignored: Option<IgnoreTarget>§is_overload: bool§index: usizeTrait Implementations§
Source§impl ToTokens for PyFunctionInfo
impl ToTokens for PyFunctionInfo
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<ItemFn> for PyFunctionInfo
impl TryFrom<ItemFn> for PyFunctionInfo
Source§impl TryFrom<PythonFunctionStub> for PyFunctionInfo
impl TryFrom<PythonFunctionStub> for PyFunctionInfo
Auto Trait Implementations§
impl Freeze for PyFunctionInfo
impl RefUnwindSafe for PyFunctionInfo
impl !Send for PyFunctionInfo
impl !Sync for PyFunctionInfo
impl Unpin for PyFunctionInfo
impl UnwindSafe for PyFunctionInfo
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> 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 moreSource§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.