Struct pyo3_macros_backend::PyClassArgs
source · [−]pub struct PyClassArgs {
pub freelist: Option<Expr>,
pub name: Option<Ident>,
pub base: TypePath,
pub has_dict: bool,
pub has_weaklist: bool,
pub is_basetype: bool,
pub has_extends: bool,
pub has_unsendable: bool,
pub module: Option<LitStr>,
pub class_kind: PyClassKind,
pub deprecations: Deprecations,
}
Expand description
The parsed arguments of the pyclass macro
Fields
freelist: Option<Expr>
name: Option<Ident>
base: TypePath
has_dict: bool
has_weaklist: bool
is_basetype: bool
has_extends: bool
has_unsendable: bool
module: Option<LitStr>
class_kind: PyClassKind
deprecations: Deprecations
Implementations
sourceimpl PyClassArgs
impl PyClassArgs
pub fn parse_stuct_args(input: ParseStream<'_>) -> Result<Self>
pub fn parse_enum_args(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations
impl RefUnwindSafe for PyClassArgs
impl !Send for PyClassArgs
impl !Sync for PyClassArgs
impl Unpin for PyClassArgs
impl UnwindSafe for PyClassArgs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more