#[repr(transparent)]pub struct PodBool(pub u8);
Expand description
The standard bool
is not a Pod
, define a replacement that is
https://docs.rs/spl-pod/latest/src/spl_pod/primitives.rs.html#13
Tuple Fields§
§0: u8
Implementations§
Trait Implementations§
source§impl PartialEq for PodBool
impl PartialEq for PodBool
impl Copy for PodBool
impl Pod for PodBool
impl StructuralPartialEq for PodBool
Auto Trait Implementations§
impl Freeze for PodBool
impl RefUnwindSafe for PodBool
impl Send for PodBool
impl Sync for PodBool
impl Unpin for PodBool
impl UnwindSafe for PodBool
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.