pub struct PyFunctionInfo {Show 13 fields
    pub name: &'static str,
    pub parameters: &'static [ParameterInfo],
    pub return: fn() -> TypeInfo,
    pub doc: &'static str,
    pub module: Option<&'static str>,
    pub is_async: bool,
    pub deprecated: Option<DeprecatedInfo>,
    pub type_ignored: Option<IgnoreTarget>,
    pub is_overload: bool,
    pub file: &'static str,
    pub line: u32,
    pub column: u32,
    pub index: usize,
}Expand description
Info of #[pyfunction]
Fields§
§name: &'static str§parameters: &'static [ParameterInfo]§return: fn() -> TypeInfo§doc: &'static str§module: Option<&'static str>§is_async: bool§deprecated: Option<DeprecatedInfo>§type_ignored: Option<IgnoreTarget>§is_overload: boolWhether this function is marked as an overload variant
file: &'static strSource file location for deterministic ordering
line: u32§column: u32§index: usizeIndex for ordering multiple functions from the same macro invocation
Trait Implementations§
Source§impl Debug for PyFunctionInfo
 
impl Debug for PyFunctionInfo
Source§impl From<&PyFunctionInfo> for FunctionDef
 
impl From<&PyFunctionInfo> for FunctionDef
Source§fn from(info: &PyFunctionInfo) -> Self
 
fn from(info: &PyFunctionInfo) -> Self
Converts to this type from the input type.
impl Collect 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 more