#[repr(transparent)]pub struct boolean(pub u8);Expand description
POD replacement for bool.
Tuple Fields§
§0: u8Trait Implementations§
Source§impl Ord for boolean
impl Ord for boolean
Source§impl PartialOrd for boolean
impl PartialOrd for boolean
Source§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 StructuralPartialEq for boolean
Auto Trait Implementations§
impl Freeze for boolean
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> 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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§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.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> ShaderRepr<Std430> for Twhere
T: ShaderNative,
impl<T> ShaderRepr<Std430> for Twhere
T: ShaderNative,
const ALIGN_MASK: usize = const ALIGN_MASK: usize = <T as ShaderNative>::ALIGN_MASK;
const ARRAY_PADDING: usize = const ARRAY_PADDING: usize = <T as ShaderNative>::ARRAY_PADDING_430;
Source§type ArrayPadding = <T as ShaderNative>::ArrayPadding430
type ArrayPadding = <T as ShaderNative>::ArrayPadding430
Padding required after field of
Self::Type for arrays.Source§fn copy_to_repr(&self, repr: &mut T)
fn copy_to_repr(&self, repr: &mut T)
Copy data in this type into its representation.
fn to_repr(&self) -> Self::Type
Source§impl<T> ShaderRepr for Twhere
T: ShaderNative,
impl<T> ShaderRepr for Twhere
T: ShaderNative,
const ALIGN_MASK: usize = const ALIGN_MASK: usize = <T as ShaderNative>::ALIGN_MASK;
const ARRAY_PADDING: usize = const ARRAY_PADDING: usize = <T as ShaderNative>::ARRAY_PADDING_140;
Source§type ArrayPadding = <T as ShaderNative>::ArrayPadding140
type ArrayPadding = <T as ShaderNative>::ArrayPadding140
Padding required after field of
Self::Type for arrays.Source§fn copy_to_repr(&self, repr: &mut T)
fn copy_to_repr(&self, repr: &mut T)
Copy data in this type into its representation.