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_struct_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