pub struct Bitmap256(/* private fields */);
Expand description
Experimental struct for now, a bitmap containing 256 bits. I wouldn’t yet recommend using this struct until it’s more stable!
Implementations§
Source§impl Bitmap256
impl Bitmap256
pub fn capacity() -> usize
pub fn to_array(&self) -> [usize; 4]
pub fn get(&self, index: usize) -> Result<bool, String>
pub fn set(&mut self, index: usize, value: bool) -> Result<(), String>
pub fn from_set(index: usize) -> Option<Bitmap256>
pub fn new(value: bool) -> Bitmap256
Trait Implementations§
Source§impl AddAssign<usize> for Bitmap256
impl AddAssign<usize> for Bitmap256
Source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the
+=
operation. Read moreSource§impl BitAndAssign for Bitmap256
impl BitAndAssign for Bitmap256
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOrAssign for Bitmap256
impl BitOrAssign for Bitmap256
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXorAssign for Bitmap256
impl BitXorAssign for Bitmap256
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl BitmapSize for Bitmap256
impl BitmapSize for Bitmap256
const MAP_LENGTH: usize = 256usize
Source§impl Ord for Bitmap256
impl Ord for Bitmap256
Source§impl PartialOrd for Bitmap256
impl PartialOrd for Bitmap256
impl Copy for Bitmap256
impl Eq for Bitmap256
impl StructuralPartialEq for Bitmap256
Auto Trait Implementations§
impl Freeze for Bitmap256
impl RefUnwindSafe for Bitmap256
impl Send for Bitmap256
impl Sync for Bitmap256
impl Unpin for Bitmap256
impl UnwindSafe for Bitmap256
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