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
fn parse(input: ParseStream<'_>, kind: PyClassKind) -> Result<Self>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)