#[repr(u8)]pub(crate) enum Padding {
Optimize = 0,
}
Expand description
By explicitly inserting this enum where padding is expected, the compiler is able to better perform niche value optimization.
Variants§
Optimize = 0
Trait Implementations§
source§impl Ord for Padding
impl Ord for Padding
source§impl PartialEq for Padding
impl PartialEq for Padding
source§impl PartialOrd for Padding
impl PartialOrd for Padding
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Padding
impl Eq for Padding
impl StructuralPartialEq for Padding
Auto Trait Implementations§
impl Freeze for Padding
impl RefUnwindSafe for Padding
impl Send for Padding
impl Sync for Padding
impl Unpin for Padding
impl UnwindSafe for Padding
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