#[repr(transparent)]pub struct boolean(pub u8);
Expand description
POD replacement for bool
.
Tuple Fields§
§0: u8
Trait Implementations§
source§impl Ord for boolean
impl Ord for boolean
source§impl PartialEq<boolean> for boolean
impl PartialEq<boolean> for boolean
source§impl PartialOrd<boolean> for boolean
impl PartialOrd<boolean> for boolean
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 moresource§impl ShaderNative for boolean
impl ShaderNative for boolean
const ALIGN_MASK: usize = 0usize
const ARRAY_PADDING_140: usize = 15usize
const ARRAY_PADDING_430: usize = 0usize
type ArrayPadding140 = [u8; 15]
type ArrayPadding430 = [u8; 0]
impl Copy for boolean
impl Eq for boolean
impl Pod for boolean
impl StructuralEq for boolean
impl StructuralPartialEq for boolean
Auto Trait Implementations§
impl RefUnwindSafe for boolean
impl Send for boolean
impl Sync for boolean
impl Unpin for boolean
impl UnwindSafe for boolean
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
.