pub struct SumVal {
pub type_id: TypeId,
pub variant: u32,
pub payload: Option<Value>,
}Expand description
A sum value: its type, the variant’s declaration index, and at most one payload (design §3.1). Variant names live in the descriptor.
Fields§
§type_id: TypeId§variant: u32§payload: Option<Value>Trait Implementations§
Auto Trait Implementations§
impl Freeze for SumVal
impl !RefUnwindSafe for SumVal
impl !Send for SumVal
impl !Sync for SumVal
impl Unpin for SumVal
impl UnsafeUnpin for SumVal
impl !UnwindSafe for SumVal
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