pub struct Bitmap4096(/* private fields */);
Expand description
Experimental struct for now, a bitmap containing 4_096 bits. I wouldn’t yet recommend using this struct until it’s more stable!
Implementations§
Source§impl Bitmap4096
impl Bitmap4096
pub fn capacity() -> usize
pub fn to_array(&self) -> [usize; 64]
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<Bitmap4096>
pub fn new(value: bool) -> Bitmap4096
Trait Implementations§
Source§impl Add<usize> for Bitmap4096
impl Add<usize> for Bitmap4096
Source§impl AddAssign<usize> for Bitmap4096
impl AddAssign<usize> for Bitmap4096
Source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the
+=
operation. Read moreSource§impl BitAnd for Bitmap4096
impl BitAnd for Bitmap4096
Source§impl BitAndAssign<[usize; 64]> for Bitmap4096
impl BitAndAssign<[usize; 64]> for Bitmap4096
Source§impl BitAndAssign for Bitmap4096
impl BitAndAssign for Bitmap4096
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOr for Bitmap4096
impl BitOr for Bitmap4096
Source§impl BitOrAssign<[usize; 64]> for Bitmap4096
impl BitOrAssign<[usize; 64]> for Bitmap4096
Source§impl BitOrAssign for Bitmap4096
impl BitOrAssign for Bitmap4096
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXor for Bitmap4096
impl BitXor for Bitmap4096
Source§impl BitXorAssign<[usize; 64]> for Bitmap4096
impl BitXorAssign<[usize; 64]> for Bitmap4096
Source§impl BitXorAssign for Bitmap4096
impl BitXorAssign for Bitmap4096
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl BitmapSize for Bitmap4096
impl BitmapSize for Bitmap4096
const MAP_LENGTH: usize = 4_096usize
Source§impl Clone for Bitmap4096
impl Clone for Bitmap4096
Source§fn clone(&self) -> Bitmap4096
fn clone(&self) -> Bitmap4096
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Bitmap4096
impl Debug for Bitmap4096
Source§impl Default for Bitmap4096
impl Default for Bitmap4096
Source§impl Deref for Bitmap4096
impl Deref for Bitmap4096
Source§impl Display for Bitmap4096
impl Display for Bitmap4096
Source§impl Hash for Bitmap4096
impl Hash for Bitmap4096
Source§impl Ord for Bitmap4096
impl Ord for Bitmap4096
Source§fn cmp(&self, other: &Bitmap4096) -> Ordering
fn cmp(&self, other: &Bitmap4096) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Bitmap4096
impl PartialEq for Bitmap4096
Source§impl PartialOrd for Bitmap4096
impl PartialOrd for Bitmap4096
impl Copy for Bitmap4096
impl Eq for Bitmap4096
impl StructuralPartialEq for Bitmap4096
Auto Trait Implementations§
impl Freeze for Bitmap4096
impl RefUnwindSafe for Bitmap4096
impl Send for Bitmap4096
impl Sync for Bitmap4096
impl Unpin for Bitmap4096
impl UnwindSafe for Bitmap4096
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