struct EnumVariantPyO3Options {
name: Option<KeywordAttribute<name, NameLitStr>>,
constructor: Option<KeywordAttribute<constructor, Signature>>,
}
Expand description
#[pyo3()]
options for pyclass enum variants
Fields§
§name: Option<KeywordAttribute<name, NameLitStr>>
§constructor: Option<KeywordAttribute<constructor, Signature>>
Implementations§
Source§impl EnumVariantPyO3Options
impl EnumVariantPyO3Options
fn take_pyo3_options(attrs: &mut Vec<Attribute>) -> Result<Self>
fn set_option(&mut self, option: EnumVariantPyO3Option) -> Result<()>
Trait Implementations§
Source§impl Clone for EnumVariantPyO3Options
impl Clone for EnumVariantPyO3Options
Source§fn clone(&self) -> EnumVariantPyO3Options
fn clone(&self) -> EnumVariantPyO3Options
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 moreSource§impl Default for EnumVariantPyO3Options
impl Default for EnumVariantPyO3Options
Source§fn default() -> EnumVariantPyO3Options
fn default() -> EnumVariantPyO3Options
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnumVariantPyO3Options
impl RefUnwindSafe for EnumVariantPyO3Options
impl !Send for EnumVariantPyO3Options
impl !Sync for EnumVariantPyO3Options
impl Unpin for EnumVariantPyO3Options
impl UnwindSafe for EnumVariantPyO3Options
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
)