Struct ink_storage::collections::bitvec::BitRefMut [−][src]
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]
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]
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,