Struct ink_storage::collections::bitvec::BitRefMut[][src]

pub struct BitRefMut<'a> { /* fields omitted */ }

A mutable bit access for operating on a single bit within a 256-bit pack.

Implementations

impl<'a> BitRefMut<'a>[src]

pub fn get(&self) -> bool[src]

Returns the value of the indexed bit.

Note

  • If 0: returns false
  • If 1: returns true

pub fn set_to(&mut self, new_value: bool)[src]

Sets the value of the indexed bit to the given new value.

pub fn set(&mut self)[src]

Sets the indexed bit to 1 (true).

pub fn reset(&mut self)[src]

Resets the indexed bit to 0 (false).

pub fn flip(&mut self)[src]

Flips the indexed bit.

pub fn xor(&mut self, rhs: bool)[src]

Computes bitwise XOR for the indexed bit and rhs.

pub fn and(&mut self, rhs: bool)[src]

Computes bitwise AND for the indexed bit and rhs.

pub fn or(&mut self, rhs: bool)[src]

Computes bitwise OR for the indexed bit and rhs.

Trait Implementations

impl<'a> Debug for BitRefMut<'a>[src]

impl<'a> Eq for BitRefMut<'a>[src]

impl<'a> PartialEq<BitRefMut<'a>> for BitRefMut<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for BitRefMut<'a>

impl<'a> Send for BitRefMut<'a>

impl<'a> Sync for BitRefMut<'a>

impl<'a> Unpin for BitRefMut<'a>

impl<'a> !UnwindSafe for BitRefMut<'a>

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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,