Struct safe_token_2022::pod::PodBool
source · #[repr(transparent)]pub struct PodBool(_);
Expand description
The standard bool
is not a Pod
, define a replacement that is
Trait Implementations§
source§impl PartialEq<PodBool> for PodBool
impl PartialEq<PodBool> for PodBool
impl Copy for PodBool
impl Pod for PodBool
impl StructuralPartialEq for PodBool
Auto Trait Implementations§
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> 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
.source§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
.