pub struct VariableBitSet(pub Vec<i64>);Expand description
A dynamically-sized bit set encoded as a prefixed array of 64-bit words.
Minecraft’s protocol calls this type BitSet. Bits are addressed from the
least-significant bit of the first word.
Tuple Fields§
§0: Vec<i64>Implementations§
Trait Implementations§
Source§impl Clone for VariableBitSet
impl Clone for VariableBitSet
Source§fn clone(&self) -> VariableBitSet
fn clone(&self) -> VariableBitSet
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 VariableBitSet
impl Debug for VariableBitSet
Source§impl Decode<'_> for VariableBitSet
impl Decode<'_> for VariableBitSet
Source§impl Default for VariableBitSet
impl Default for VariableBitSet
Source§fn default() -> VariableBitSet
fn default() -> VariableBitSet
Returns the “default value” for a type. Read more
Source§impl Display for VariableBitSet
impl Display for VariableBitSet
Source§impl Encode for VariableBitSet
impl Encode for VariableBitSet
Source§impl PartialEq for VariableBitSet
impl PartialEq for VariableBitSet
impl Eq for VariableBitSet
impl StructuralPartialEq for VariableBitSet
Auto Trait Implementations§
impl Freeze for VariableBitSet
impl RefUnwindSafe for VariableBitSet
impl Send for VariableBitSet
impl Sync for VariableBitSet
impl Unpin for VariableBitSet
impl UnwindSafe for VariableBitSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.