pub enum SpecialRepr {
InlineNat,
InlineBool,
InlineUnit,
InlineChar,
EnumTag {
num_ctors: u32,
},
PackedStruct {
size_bytes: u32,
},
BoxedArray,
BoxedString,
}Expand description
Special representation hints for common types.
Variants§
InlineNat
This type is represented as a small nat inline.
InlineBool
This type is represented as a bool inline.
InlineUnit
This type is represented as a unit inline.
InlineChar
This type is represented as a char inline.
EnumTag
This type uses enum-style representation (no fields).
PackedStruct
This type uses a packed struct representation.
BoxedArray
This type is represented as a boxed array.
BoxedString
This type is represented as a string.
Trait Implementations§
Source§impl Clone for SpecialRepr
impl Clone for SpecialRepr
Source§fn clone(&self) -> SpecialRepr
fn clone(&self) -> SpecialRepr
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 SpecialRepr
impl RefUnwindSafe for SpecialRepr
impl Send for SpecialRepr
impl Sync for SpecialRepr
impl Unpin for SpecialRepr
impl UnsafeUnpin for SpecialRepr
impl UnwindSafe for SpecialRepr
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