Trait planck_ecs::BitSet[]

pub trait BitSet {
Show methods fn bit_len(&self) -> usize;
fn bit_init(&mut self, value: bool) -> &mut Self;
fn bit_test(&self, bit: usize) -> bool;
fn bit_set(&mut self, bit: usize) -> &mut Self;
fn bit_reset(&mut self, bit: usize) -> &mut Self;
fn bit_flip(&mut self, bit: usize) -> &mut Self;
fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self;
fn bit_all(&self) -> bool;
fn bit_any(&self) -> bool;
fn bit_eq(&self, rhs: &Self) -> bool;
fn bit_disjoint(&self, rhs: &Self) -> bool;
fn bit_subset(&self, rhs: &Self) -> bool;
fn bit_or(&mut self, rhs: &Self) -> &mut Self;
fn bit_and(&mut self, rhs: &Self) -> &mut Self;
fn bit_andnot(&mut self, rhs: &Self) -> &mut Self;
fn bit_xor(&mut self, rhs: &Self) -> &mut Self;
fn bit_not(&mut self) -> &mut Self;
fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self;
fn bit_count(&self) -> usize; fn bit_fmt(&self) -> &BitFmt<Self> { ... }
fn bit_none(&self) -> bool { ... }
fn bit_superset(&self, rhs: &Self) -> bool { ... }
}
Expand description

The BitSet API.

Required methods

Returns total number of bits.

Initializes all bits.

Returns if the given bit is set.

Sets the given bit.

Resets the given bit.

Flips the given bit.

Conditionally sets or resets the given bit.

Returns if all bits are set.

Returns if any bits are set.

Returns if the two bitsets are equal.

Returns if the two bitsets have no bits in common.

Returns if self is a subset of rhs.

Bitwise OR.

Bitwise AND.

Bitwise AND after NOT of rhs.

Bitwise XOR.

Bitwise NOT.

Bitwise combine with MASK.

Counts the number of set bits.

Provided methods

Format the bits.

Returns if none of the bits are set.

Returns if self is a superset of rhs.

Implementations on Foreign Types

Implementors