pub struct LeBool(/* private fields */);Expand description
Boolean wire type. Alignment 1.
Stored as a single byte: 0 = false, nonzero = true.
is_valid() returns true only for 0 or 1, catching
corrupted data that other frameworks would silently accept.
Implementations§
Trait Implementations§
impl Copy for LeBool
impl Eq for LeBool
impl Projectable for LeBool
impl StructuralPartialEq for LeBool
Auto Trait Implementations§
impl Freeze for LeBool
impl RefUnwindSafe for LeBool
impl Send for LeBool
impl Sync for LeBool
impl Unpin for LeBool
impl UnsafeUnpin for LeBool
impl UnwindSafe for LeBool
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