Struct pyo3_macros_backend::PyClassArgs
source · pub struct PyClassArgs {
pub class_kind: PyClassKind,
pub options: PyClassPyO3Options,
}
Expand description
The parsed arguments of the pyclass macro
Fields§
§class_kind: PyClassKind
§options: PyClassPyO3Options
Implementations§
source§impl PyClassArgs
impl PyClassArgs
pub fn parse_stuct_args(input: ParseStream<'_>) -> Result<Self>
pub fn parse_enum_args(input: ParseStream<'_>) -> Result<Self>
Trait Implementations§
source§impl Clone for PyClassArgs
impl Clone for PyClassArgs
source§fn clone(&self) -> PyClassArgs
fn clone(&self) -> PyClassArgs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PyClassArgs
impl RefUnwindSafe for PyClassArgs
impl !Send for PyClassArgs
impl !Sync for PyClassArgs
impl Unpin for PyClassArgs
impl UnwindSafe for PyClassArgs
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