[−][src]Struct boolvec::RefBoolMut
A mutable reference to a bool
value that may be in the middle of a byte.
Implementations
impl<'s> RefBoolMut<'s>
[src]
pub fn new(byte: &'s mut u8, bit_mask: Mask) -> Self
[src]
Creates a new MutBool
.
pub fn get(&self) -> bool
[src]
Gets the value of the referenced boolean.
pub fn set(&mut self, value: bool)
[src]
Sets the value of the referenced boolean.
pub unsafe fn unconstrained_next_bit(self) -> Self
[src]
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.
pub unsafe fn unconstrained_prev_bit(self) -> Self
[src]
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.
pub fn next_bit(self) -> Self
[src]
Returns a reference that points to the next bit within the referenced byte.
Panics
This function panics if the previous bit is not part of the referenced byte.
pub fn prev_bit(self) -> Self
[src]
Returns a reference that points to the previous bit within the referenced byte.
Panics
This function panics if the previous bit is not part of the referenced byte.
Trait Implementations
impl<'s> Clone for RefBoolMut<'s>
[src]
fn clone(&self) -> RefBoolMut<'s>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'s> Copy for RefBoolMut<'s>
[src]
impl<'s> Debug for RefBoolMut<'s>
[src]
impl<'s> Display for RefBoolMut<'s>
[src]
impl<'s> Eq for RefBoolMut<'s>
[src]
impl<'s> Ord for RefBoolMut<'s>
[src]
fn cmp(&self, other: &RefBoolMut<'s>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'s> PartialEq<RefBoolMut<'s>> for RefBoolMut<'s>
[src]
fn eq(&self, other: &RefBoolMut<'s>) -> bool
[src]
fn ne(&self, other: &RefBoolMut<'s>) -> bool
[src]
impl<'s> PartialOrd<RefBoolMut<'s>> for RefBoolMut<'s>
[src]
fn partial_cmp(&self, other: &RefBoolMut<'s>) -> Option<Ordering>
[src]
fn lt(&self, other: &RefBoolMut<'s>) -> bool
[src]
fn le(&self, other: &RefBoolMut<'s>) -> bool
[src]
fn gt(&self, other: &RefBoolMut<'s>) -> bool
[src]
fn ge(&self, other: &RefBoolMut<'s>) -> bool
[src]
impl<'s> StructuralEq for RefBoolMut<'s>
[src]
impl<'s> StructuralPartialEq for RefBoolMut<'s>
[src]
Auto Trait Implementations
impl<'s> RefUnwindSafe for RefBoolMut<'s>
impl<'s> !Send for RefBoolMut<'s>
impl<'s> !Sync for RefBoolMut<'s>
impl<'s> Unpin for RefBoolMut<'s>
impl<'s> !UnwindSafe for RefBoolMut<'s>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,