struct PyClassEnumUnitVariant<'a> {
ident: &'a Ident,
options: EnumVariantPyO3Options,
cfg_attrs: Vec<&'a Attribute>,
}
Expand description
A unit variant has no fields
Fields§
§ident: &'a Ident
§options: EnumVariantPyO3Options
§cfg_attrs: Vec<&'a Attribute>
Trait Implementations§
Source§impl EnumVariant for PyClassEnumUnitVariant<'_>
impl EnumVariant for PyClassEnumUnitVariant<'_>
fn get_ident(&self) -> &Ident
fn get_options(&self) -> &EnumVariantPyO3Options
fn get_python_name(&self, args: &PyClassArgs) -> Cow<'_, Ident>
Auto Trait Implementations§
impl<'a> Freeze for PyClassEnumUnitVariant<'a>
impl<'a> RefUnwindSafe for PyClassEnumUnitVariant<'a>
impl<'a> !Send for PyClassEnumUnitVariant<'a>
impl<'a> !Sync for PyClassEnumUnitVariant<'a>
impl<'a> Unpin for PyClassEnumUnitVariant<'a>
impl<'a> UnwindSafe for PyClassEnumUnitVariant<'a>
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