pub struct VariantPartValue<R: Reader<Offset = usize>> {
pub variant: Option<MemberValue<R>>,
pub variants: Vec<VariantValue<R>>,
}
Expand description
Struct that represents a variant_part.
Fields§
§variant: Option<MemberValue<R>>
The variant value
variants: Vec<VariantValue<R>>
The variants
Implementations§
Trait Implementations§
Source§impl<R: Clone + Reader<Offset = usize>> Clone for VariantPartValue<R>
impl<R: Clone + Reader<Offset = usize>> Clone for VariantPartValue<R>
Source§fn clone(&self) -> VariantPartValue<R>
fn clone(&self) -> VariantPartValue<R>
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<R> Freeze for VariantPartValue<R>where
R: Freeze,
impl<R> RefUnwindSafe for VariantPartValue<R>where
R: RefUnwindSafe,
impl<R> Send for VariantPartValue<R>where
R: Send,
impl<R> Sync for VariantPartValue<R>where
R: Sync,
impl<R> Unpin for VariantPartValue<R>where
R: Unpin,
impl<R> UnwindSafe for VariantPartValue<R>where
R: UnwindSafe,
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