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