pub struct VariantInfo {
pub pyclass_name: &'static str,
pub module: Option<&'static str>,
pub doc: &'static str,
pub fields: &'static [MemberInfo],
pub form: &'static VariantForm,
pub constr_args: &'static [ArgInfo],
}
Expand description
Info of a #[pyclass]
with a single variant of a rich (structured) Rust enum
Fields§
§pyclass_name: &'static str
§module: Option<&'static str>
§doc: &'static str
§fields: &'static [MemberInfo]
§form: &'static VariantForm
§constr_args: &'static [ArgInfo]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VariantInfo
impl RefUnwindSafe for VariantInfo
impl Send for VariantInfo
impl Sync for VariantInfo
impl Unpin for VariantInfo
impl UnwindSafe for VariantInfo
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more