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