pub struct RefBool<'s> { /* private fields */ }Expand description
A reference to a bool value that may be in the middle of a byte.
Implementations§
Source§impl<'s> RefBool<'s>
impl<'s> RefBool<'s>
Sourcepub unsafe fn unconstrained_next_bit(self) -> Self
pub unsafe fn unconstrained_next_bit(self) -> Self
Returns a reference that points to the next bit without being constrained by the referenced byte.
§Safety
The previous bit must be a valid value.
Sourcepub unsafe fn unconstrained_prev_bit(self) -> Self
pub unsafe fn unconstrained_prev_bit(self) -> Self
Returns a reference that points to the previous bit without being constrained by the referenced byte.
§Safety
The previous bit must be a valid value.
Trait Implementations§
Source§impl<'s> Ord for RefBool<'s>
impl<'s> Ord for RefBool<'s>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'s> PartialOrd for RefBool<'s>
impl<'s> PartialOrd for RefBool<'s>
impl<'s> Copy for RefBool<'s>
impl<'s> Eq for RefBool<'s>
impl<'s> StructuralPartialEq for RefBool<'s>
Auto Trait Implementations§
impl<'s> Freeze for RefBool<'s>
impl<'s> RefUnwindSafe for RefBool<'s>
impl<'s> !Send for RefBool<'s>
impl<'s> !Sync for RefBool<'s>
impl<'s> Unpin for RefBool<'s>
impl<'s> UnwindSafe for RefBool<'s>
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