Struct pyo3_stub_gen::type_info::PyFunctionInfo
source · pub struct PyFunctionInfo {
pub name: &'static str,
pub args: &'static [ArgInfo],
pub return: fn() -> TypeInfo,
pub doc: &'static str,
pub signature: Option<&'static str>,
pub module: Option<&'static str>,
}
Expand description
Info of #[pyfunction]
Fields§
§name: &'static str
§args: &'static [ArgInfo]
§return: fn() -> TypeInfo
§doc: &'static str
§signature: Option<&'static str>
§module: Option<&'static str>
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