[][src]Struct boolvec::RefBoolMut

pub struct RefBoolMut<'s> { /* fields omitted */ }

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]

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]

impl<'s> PartialEq<RefBoolMut<'s>> for RefBoolMut<'s>[src]

impl<'s> PartialOrd<RefBoolMut<'s>> for RefBoolMut<'s>[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.