Struct collider::geom::CardMask
[−]
[src]
pub struct CardMask { /* fields omitted */ }
A map from Card
to bool
, typically used to specify allowed normal vector directions.
Methods
impl CardMask
[src]
pub fn empty() -> CardMask
[src]
Creates a CardMask
with all values set to false
.
pub fn full() -> CardMask
[src]
Creates a CardMask
with all values set to true
.
Trait Implementations
impl PartialEq for CardMask
[src]
fn eq(&self, __arg_0: &CardMask) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CardMask) -> bool
[src]
This method tests for !=
.
impl Eq for CardMask
[src]
impl Copy for CardMask
[src]
impl Clone for CardMask
[src]
fn clone(&self) -> CardMask
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for CardMask
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl From<Card> for CardMask
[src]
impl Index<Card> for CardMask
[src]
type Output = bool
The returned type after indexing.
fn index(&self, index: Card) -> &bool
[src]
Performs the indexing (container[index]
) operation.
impl IndexMut<Card> for CardMask
[src]
fn index_mut(&mut self, index: Card) -> &mut bool
[src]
Performs the mutable indexing (container[index]
) operation.