Struct uniffi_bindgen::interface::Variant
source · pub struct Variant {
pub(super) name: String,
pub(super) discr: Option<Literal>,
pub(super) fields: Vec<Field>,
pub(super) docstring: Option<String>,
}
Expand description
Represents an individual variant in an Enum.
Each variant has a name and zero or more fields.
Fields§
§name: String
§discr: Option<Literal>
§fields: Vec<Field>
§docstring: Option<String>
Implementations§
Trait Implementations§
source§impl AsCodeType for &Variant
impl AsCodeType for &Variant
fn as_codetype(&self) -> Box<dyn CodeType>
source§impl AsCodeType for Variant
impl AsCodeType for Variant
fn as_codetype(&self) -> Box<dyn CodeType>
source§impl PartialEq<Variant> for Variant
impl PartialEq<Variant> for Variant
impl Eq for Variant
impl StructuralEq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
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