pub struct FromU32(/* private fields */);Expand description
A built-in Zdex-compatible BitCollection for u32.
Trait Implementations§
Source§impl<T: Into<FromU32>> BitAndAssign<T> for FromU32
impl<T: Into<FromU32>> BitAndAssign<T> for FromU32
Source§fn bitand_assign(&mut self, rhs: T)
fn bitand_assign(&mut self, rhs: T)
Performs the
&= operation. Read moreSource§impl BitCollection for FromU32
impl BitCollection for FromU32
Source§fn has_multiple(&self) -> bool
fn has_multiple(&self) -> bool
Returns whether
self has multiple bits set.Source§unsafe fn lsb_unchecked(&self) -> BitU8
unsafe fn lsb_unchecked(&self) -> BitU8
Returns the least significant bit in
self without checking whether
self is empty.Source§unsafe fn msb_unchecked(&self) -> BitU8
unsafe fn msb_unchecked(&self) -> BitU8
Returns the most significant bit in
self without checking whether
self is empty.Source§fn remove_lsb(&mut self)
fn remove_lsb(&mut self)
Removes the least significant bit from
self.Source§fn remove_msb(&mut self)
fn remove_msb(&mut self)
Removes the most significant bit from
self.Source§fn pop_lsb(&mut self) -> Option<Self::Item>
fn pop_lsb(&mut self) -> Option<Self::Item>
Removes the least significant bit from
self and returns it.Source§fn pop_msb(&mut self) -> Option<BitU8>
fn pop_msb(&mut self) -> Option<BitU8>
Removes the most significant bit from
self and returns it.Source§fn as_iter(&mut self) -> &mut BitIter<Self>
fn as_iter(&mut self) -> &mut BitIter<Self>
Returns
self as an iterator over itself. Read moreSource§fn lsb(&self) -> Option<Self::Item>
fn lsb(&self) -> Option<Self::Item>
Returns the least significant bit in
self if self is not empty.Source§fn msb(&self) -> Option<Self::Item>
fn msb(&self) -> Option<Self::Item>
Returns the most significant bit in
self if self is not empty.Source§fn removing<T>(self, other: T) -> Selfwhere
T: Into<Self>,
fn removing<T>(self, other: T) -> Selfwhere
T: Into<Self>,
Returns the result of removing the value from
self.Source§fn inserting<T>(self, other: T) -> Selfwhere
T: Into<Self>,
fn inserting<T>(self, other: T) -> Selfwhere
T: Into<Self>,
Returns the result of inserting the value into
self.Source§fn toggling<T>(self, other: T) -> Selfwhere
T: Into<Self>,
fn toggling<T>(self, other: T) -> Selfwhere
T: Into<Self>,
Returns the result of toggling the bits of the value in
self.Source§fn intersecting<T>(self, other: T) -> Selfwhere
T: Into<Self>,
fn intersecting<T>(self, other: T) -> Selfwhere
T: Into<Self>,
Returns the result of intersecting the bits of the value with
self.Source§fn setting<T>(self, other: T, condition: bool) -> Selfwhere
T: Into<Self>,
fn setting<T>(self, other: T, condition: bool) -> Selfwhere
T: Into<Self>,
Returns the result of setting the bits of the value in
self based on
condition.Source§fn remove<T>(&mut self, other: T) -> &mut Selfwhere
T: Into<Self>,
fn remove<T>(&mut self, other: T) -> &mut Selfwhere
T: Into<Self>,
Removes the value from
self.Source§fn insert<T>(&mut self, other: T) -> &mut Selfwhere
T: Into<Self>,
fn insert<T>(&mut self, other: T) -> &mut Selfwhere
T: Into<Self>,
Inserts the value into
self.Source§fn toggle<T>(&mut self, other: T) -> &mut Selfwhere
T: Into<Self>,
fn toggle<T>(&mut self, other: T) -> &mut Selfwhere
T: Into<Self>,
Toggles bits of the value in
self.Source§impl<T: Into<FromU32>> BitOrAssign<T> for FromU32
impl<T: Into<FromU32>> BitOrAssign<T> for FromU32
Source§fn bitor_assign(&mut self, rhs: T)
fn bitor_assign(&mut self, rhs: T)
Performs the
|= operation. Read moreSource§impl<T: Into<FromU32>> BitXorAssign<T> for FromU32
impl<T: Into<FromU32>> BitXorAssign<T> for FromU32
Source§fn bitxor_assign(&mut self, rhs: T)
fn bitxor_assign(&mut self, rhs: T)
Performs the
^= operation. Read moreSource§impl<T: Into<FromU32>> Extend<T> for FromU32
impl<T: Into<FromU32>> Extend<T> for FromU32
Source§fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<T: Into<FromU32>> FromIterator<T> for FromU32
impl<T: Into<FromU32>> FromIterator<T> for FromU32
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl IntoIterator for FromU32
impl IntoIterator for FromU32
Source§impl<T: Into<FromU32>> SubAssign<T> for FromU32
impl<T: Into<FromU32>> SubAssign<T> for FromU32
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-= operation. Read moreimpl Copy for FromU32
Auto Trait Implementations§
impl Freeze for FromU32
impl RefUnwindSafe for FromU32
impl Send for FromU32
impl Sync for FromU32
impl Unpin for FromU32
impl UnwindSafe for FromU32
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