Struct azalea_core::bitset::FixedBitSet
source · pub struct FixedBitSet<const N: usize>{ /* private fields */ }
Expand description
A list of bits with a known fixed size.
Note that this is primarily meant for fast serialization and deserialization
for Minecraft, if you don’t need that you should use the fixedbitset
crate
since it’s approximately 20% faster (since it stores the data as usizes
instead of u8s)
Implementations§
Trait Implementations§
source§impl<const N: usize> Clone for FixedBitSet<N>
impl<const N: usize> Clone for FixedBitSet<N>
source§fn clone(&self) -> FixedBitSet<N>
fn clone(&self) -> FixedBitSet<N>
Returns a copy 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<const N: usize> Debug for FixedBitSet<N>
impl<const N: usize> Debug for FixedBitSet<N>
source§impl<const N: usize> Default for FixedBitSet<N>
impl<const N: usize> Default for FixedBitSet<N>
source§impl<const N: usize> Hash for FixedBitSet<N>
impl<const N: usize> Hash for FixedBitSet<N>
source§impl<const N: usize> McBufReadable for FixedBitSet<N>
impl<const N: usize> McBufReadable for FixedBitSet<N>
source§impl<const N: usize> McBufWritable for FixedBitSet<N>
impl<const N: usize> McBufWritable for FixedBitSet<N>
source§impl<const N: usize> PartialEq for FixedBitSet<N>
impl<const N: usize> PartialEq for FixedBitSet<N>
source§fn eq(&self, other: &FixedBitSet<N>) -> bool
fn eq(&self, other: &FixedBitSet<N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<const N: usize> Eq for FixedBitSet<N>
impl<const N: usize> StructuralPartialEq for FixedBitSet<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for FixedBitSet<N>
impl<const N: usize> RefUnwindSafe for FixedBitSet<N>
impl<const N: usize> Send for FixedBitSet<N>
impl<const N: usize> Sync for FixedBitSet<N>
impl<const N: usize> Unpin for FixedBitSet<N>
impl<const N: usize> UnwindSafe for FixedBitSet<N>
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