Struct pyo3_macros_backend::PyFunctionAttr [−][src]
The attributes of the pyfunction macro
Fields
arguments: Vec<Argument>
pass_module: bool
Implementations
impl PyFunctionAttr
[src]
pub fn from_meta<'a>(
iter: impl IntoIterator<Item = &'a NestedMeta>
) -> Result<Self>
[src]
iter: impl IntoIterator<Item = &'a NestedMeta>
) -> Result<Self>
pub fn add_item(&mut self, item: &NestedMeta) -> Result<()>
[src]
Trait Implementations
impl Default for PyFunctionAttr
[src]
fn default() -> PyFunctionAttr
[src]
impl Parse for PyFunctionAttr
[src]
fn parse(input: &ParseBuffer<'_>) -> Result<Self>
[src]
Auto Trait Implementations
impl RefUnwindSafe for PyFunctionAttr
[src]
impl !Send for PyFunctionAttr
[src]
impl !Sync for PyFunctionAttr
[src]
impl Unpin for PyFunctionAttr
[src]
impl UnwindSafe for PyFunctionAttr
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,