Struct oxygengine_core::ecs::hibitset::BitSetOr [−]
pub struct BitSetOr<A, B>(pub A, pub B)
where
A: BitSetLike,
B: BitSetLike;
Expand description
BitSetOr
takes two BitSetLike
items, and merges the masks
returning a new virtual set, which represents an merged of the
two original sets.
Trait Implementations
impl<'a, A, B, T> BitAnd<T> for &'a BitSetOr<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<'a, A, B, T> BitAnd<T> for &'a BitSetOr<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<A, B, T> BitAnd<T> for BitSetOr<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<A, B, T> BitAnd<T> for BitSetOr<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<'a, A, B, T> BitOr<T> for &'a BitSetOr<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<'a, A, B, T> BitOr<T> for &'a BitSetOr<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<A, B, T> BitOr<T> for BitSetOr<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<A, B, T> BitOr<T> for BitSetOr<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<A, B> BitSetLike for BitSetOr<A, B> where
A: BitSetLike,
B: BitSetLike,
impl<A, B> BitSetLike for BitSetOr<A, B> where
A: BitSetLike,
B: BitSetLike,
Return a usize
where each bit represents if any word in layer2
has been set. Read more
Return the usize
from the array of usizes that indicates if any
bit has been set in layer1 Read more
Return the usize
from the array of usizes that indicates if any
bit has been set in layer0 Read more
Return a usize
that maps to the direct 1:1 association with
each index of the set Read more
fn get_from_layer(&self, layer: usize, idx: usize) -> usize
fn get_from_layer(&self, layer: usize, idx: usize) -> usize
Gets the usize
corresponding to layer and index. Read more
impl<A, B, T> BitXor<T> for BitSetOr<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<A, B, T> BitXor<T> for BitSetOr<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<'a, A, B, T> BitXor<T> for &'a BitSetOr<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<'a, A, B, T> BitXor<T> for &'a BitSetOr<A, B> where
T: BitSetLike,
A: BitSetLike,
B: BitSetLike,
impl<A, B> Clone for BitSetOr<A, B> where
A: Clone + BitSetLike,
B: Clone + BitSetLike,
impl<A, B> Clone for BitSetOr<A, B> where
A: Clone + BitSetLike,
B: Clone + BitSetLike,
impl<A, B> Debug for BitSetOr<A, B> where
A: Debug + BitSetLike,
B: Debug + BitSetLike,
impl<A, B> Debug for BitSetOr<A, B> where
A: Debug + BitSetLike,
B: Debug + BitSetLike,
impl<A, B> DrainableBitSet for BitSetOr<A, B> where
A: DrainableBitSet,
B: DrainableBitSet,
impl<A, B> DrainableBitSet for BitSetOr<A, B> where
A: DrainableBitSet,
B: DrainableBitSet,
fn drain(&'a mut self) -> DrainBitIter<'a, Self>ⓘNotable traits for DrainBitIter<'a, T>
impl<'a, T> Iterator for DrainBitIter<'a, T> where
T: DrainableBitSet, type Item = u32;
fn drain(&'a mut self) -> DrainBitIter<'a, Self>ⓘNotable traits for DrainBitIter<'a, T>
impl<'a, T> Iterator for DrainBitIter<'a, T> where
T: DrainableBitSet, type Item = u32;
Create a draining iterator that will scan over the keyspace and clears it while doing so.
impl<A, B> IntoIterator for BitSetOr<A, B> where
A: BitSetLike,
B: BitSetLike,
impl<A, B> IntoIterator for BitSetOr<A, B> where
A: BitSetLike,
B: BitSetLike,
The type of the elements being iterated over.
pub fn into_iter(self) -> <BitSetOr<A, B> as IntoIterator>::IntoIter
pub fn into_iter(self) -> <BitSetOr<A, B> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
impl<'a, A, B> IntoIterator for &'a BitSetOr<A, B> where
A: BitSetLike,
B: BitSetLike,
impl<'a, A, B> IntoIterator for &'a BitSetOr<A, B> where
A: BitSetLike,
B: BitSetLike,
The type of the elements being iterated over.
pub fn into_iter(self) -> <&'a BitSetOr<A, B> as IntoIterator>::IntoIter
pub fn into_iter(self) -> <&'a BitSetOr<A, B> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Open this join by returning the mask and the storages. Read more
Get a joined component value by a given index. Read more
Create a joined iterator over the contents.
Returns a Join
-able structure that yields all indices, returning
None
for all missing elements and Some(T)
for found elements. Read more
If this Join
typically returns all indices in the mask, then iterating
over only it or combined with other joins that are also dangerous
will cause the JoinIter
/ParJoin
to go through all indices which
is usually not what is wanted and will kill performance. Read more
Open this join by returning the mask and the storages. Read more
Get a joined component value by a given index. Read more
Create a joined iterator over the contents.
Returns a Join
-able structure that yields all indices, returning
None
for all missing elements and Some(T)
for found elements. Read more
If this Join
typically returns all indices in the mask, then iterating
over only it or combined with other joins that are also dangerous
will cause the JoinIter
/ParJoin
to go through all indices which
is usually not what is wanted and will kill performance. Read more
impl<'a, A, B> Not for &'a BitSetOr<A, B> where
A: BitSetLike,
B: BitSetLike,
impl<'a, A, B> Not for &'a BitSetOr<A, B> where
A: BitSetLike,
B: BitSetLike,
Auto Trait Implementations
impl<A, B> RefUnwindSafe for BitSetOr<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> UnwindSafe for BitSetOr<A, B> where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more