Enum rustc_transmute::layout::Byte
source · pub(crate) enum Byte {
Uninit,
Init(u8),
}
Expand description
An instance of a byte is either initialized to a particular value, or uninitialized.
Variants§
Trait Implementations§
source§impl PartialEq<Byte> for Byte
impl PartialEq<Byte> for Byte
impl Copy for Byte
impl Eq for Byte
impl StructuralEq for Byte
impl StructuralPartialEq for Byte
Auto Trait Implementations§
impl RefUnwindSafe for Byte
impl Send for Byte
impl Sync for Byte
impl Unpin for Byte
impl UnwindSafe for Byte
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 2 bytes
Size for each variant:
Uninit
: 0 bytesInit
: 1 byte