pub enum PyEnumBase {
Enum,
IntEnum,
StrEnum,
Flag,
IntFlag,
}Expand description
Python enum base type selector.
Chosen per derive via #[pyenum(base = "...")]; defaults to
PyEnumBase::Enum. The variant name matches the Python class name
exactly — no translation layer.
Variants§
Implementations§
Source§impl PyEnumBase
impl PyEnumBase
Sourcepub const fn class_name(self) -> &'static str
pub const fn class_name(self) -> &'static str
The Python attribute name on the enum module that exposes this base.
Trait Implementations§
Source§impl Clone for PyEnumBase
impl Clone for PyEnumBase
Source§fn clone(&self) -> PyEnumBase
fn clone(&self) -> PyEnumBase
Returns a duplicate 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 moreSource§impl Debug for PyEnumBase
impl Debug for PyEnumBase
Source§impl PartialEq for PyEnumBase
impl PartialEq for PyEnumBase
impl Copy for PyEnumBase
impl Eq for PyEnumBase
impl StructuralPartialEq for PyEnumBase
Auto Trait Implementations§
impl Freeze for PyEnumBase
impl RefUnwindSafe for PyEnumBase
impl Send for PyEnumBase
impl Sync for PyEnumBase
impl Unpin for PyEnumBase
impl UnsafeUnpin for PyEnumBase
impl UnwindSafe for PyEnumBase
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