pub struct VariantCase {
pub name: String,
pub original_name: String,
pub payload: Option<RsType>,
}Expand description
A case in a variant type
Fields§
§name: String§original_name: String§payload: Option<RsType>Trait Implementations§
Source§impl Clone for VariantCase
impl Clone for VariantCase
Source§fn clone(&self) -> VariantCase
fn clone(&self) -> VariantCase
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for VariantCase
impl RefUnwindSafe for VariantCase
impl Send for VariantCase
impl Sync for VariantCase
impl Unpin for VariantCase
impl UnsafeUnpin for VariantCase
impl UnwindSafe for VariantCase
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