pub struct PyFunctionAttr {
pub arguments: Vec<Argument>,
pub pass_module: bool,
/* private fields */
}
Expand description
The attributes of the pyfunction macro
Fields§
§arguments: Vec<Argument>
§pass_module: bool
Implementations§
Source§impl PyFunctionAttr
impl PyFunctionAttr
pub fn from_meta<'a>( iter: impl IntoIterator<Item = &'a NestedMeta>, ) -> Result<Self>
pub fn add_item(&mut self, item: &NestedMeta) -> Result<()>
Trait Implementations§
Source§impl Default for PyFunctionAttr
impl Default for PyFunctionAttr
Source§fn default() -> PyFunctionAttr
fn default() -> PyFunctionAttr
Returns the “default value” for a type. Read more
Source§impl Parse for PyFunctionAttr
impl Parse for PyFunctionAttr
fn parse(input: &ParseBuffer<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for PyFunctionAttr
impl RefUnwindSafe for PyFunctionAttr
impl !Send for PyFunctionAttr
impl !Sync for PyFunctionAttr
impl Unpin for PyFunctionAttr
impl UnwindSafe for PyFunctionAttr
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