#[repr(u32)]
pub enum boolean {
True,
False,
}
Expand description
A 32-bit boolean value.
boolean::False is stored identically to a uint of 0
; boolean::True is stored identically
to a uint of 1
.
Example
let value = std140::uint(1);
Variants
True
False
Trait Implementations
sourceimpl PartialEq<boolean> for boolean
impl PartialEq<boolean> for boolean
impl Copy for boolean
impl ReprStd140 for boolean
impl Std140ArrayElement 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more