Single enum variants, structs/tuples, unions, and all non-ADTs.
Fields of Single
Enum-likes with more than one inhabited variant: each variant comes with a discriminant (usually the same as the variant index but the user can assign explicit discriminant values). That discriminant is encoded as a tag on the machine. The layout of each variant is a struct, and they all have space reserved for the tag. For enums, the tag is the sole field of the layout.
Fields of Multiple
fn hash_slice<H>(data: &[Self], state: &mut H) where1.3.0[src]
impl<__CTX> HashStable<__CTX> for Variants where[src]
impl StructuralEq for Variants[src]
impl StructuralPartialEq for Variants[src]
Auto Trait Implementations
impl RefUnwindSafe for Variants
impl UnwindSafe for Variants
impl<T> MaybeResult<T> for T[src]
pub fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T[src]
pub fn to_result(Self) -> Result<T, <T as MaybeResult<T>>::Error>[src]
type Error = Infallible
The type returned in the event of a conversion error.