Enum pyo3_macros_backend::pyclass::PyClassKind
source · pub enum PyClassKind {
Struct,
Enum,
}
Expand description
If the class is derived from a Rust struct
or enum
.
Variants§
Trait Implementations§
source§impl Clone for PyClassKind
impl Clone for PyClassKind
source§fn clone(&self) -> PyClassKind
fn clone(&self) -> PyClassKind
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 Debug for PyClassKind
impl Debug for PyClassKind
source§impl Eq for PyClassKind
impl Eq for PyClassKind
#[doc(hidden)] fn assert_receiver_is_total_eq(&self)
source§impl PartialEq for PyClassKind
impl PartialEq for PyClassKind
source§fn eq(&self, other: &PyClassKind) -> bool
fn eq(&self, other: &PyClassKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PyClassKind
impl StructuralPartialEq for PyClassKind
Auto Trait Implementations§
impl Freeze for PyClassKind
impl RefUnwindSafe for PyClassKind
impl Send for PyClassKind
impl Sync for PyClassKind
impl Unpin for PyClassKind
impl UnwindSafe for PyClassKind
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