Struct BVec3
#[repr(C, align(1))]pub struct BVec3 {
pub x: bool,
pub y: bool,
pub z: bool,
}Expand description
A 3-dimensional bool vector mask.
Fields§
§x: bool§y: bool§z: boolImplementations§
§impl BVec3
impl BVec3
pub const fn from_array(a: [bool; 3]) -> BVec3
pub const fn from_array(a: [bool; 3]) -> BVec3
Creates a new vector mask from a bool array.
Trait Implementations§
§impl BitAndAssign for BVec3
impl BitAndAssign for BVec3
§fn bitand_assign(&mut self, rhs: BVec3)
fn bitand_assign(&mut self, rhs: BVec3)
Performs the
&= operation. Read more§impl BitAndAssign<&BVec3> for BVec3
impl BitAndAssign<&BVec3> for BVec3
§fn bitand_assign(&mut self, rhs: &BVec3)
fn bitand_assign(&mut self, rhs: &BVec3)
Performs the
&= operation. Read more§impl BitOrAssign for BVec3
impl BitOrAssign for BVec3
§fn bitor_assign(&mut self, rhs: BVec3)
fn bitor_assign(&mut self, rhs: BVec3)
Performs the
|= operation. Read more§impl BitOrAssign<&BVec3> for BVec3
impl BitOrAssign<&BVec3> for BVec3
§fn bitor_assign(&mut self, rhs: &BVec3)
fn bitor_assign(&mut self, rhs: &BVec3)
Performs the
|= operation. Read more§impl BitXorAssign for BVec3
impl BitXorAssign for BVec3
§fn bitxor_assign(&mut self, rhs: BVec3)
fn bitxor_assign(&mut self, rhs: BVec3)
Performs the
^= operation. Read more§impl BitXorAssign<&BVec3> for BVec3
impl BitXorAssign<&BVec3> for BVec3
§fn bitxor_assign(&mut self, rhs: &BVec3)
fn bitxor_assign(&mut self, rhs: &BVec3)
Performs the
^= operation. Read moreimpl Copy for BVec3
§impl<'de> Deserialize<'de> for BVec3
Deserialize expects a sequence of 3 values.
impl<'de> Deserialize<'de> for BVec3
Deserialize expects a sequence of 3 values.
§fn deserialize<D>(
deserializer: D,
) -> Result<BVec3, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<BVec3, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BVec3
§impl Serialize for BVec3
Serialize as a sequence of 3 values.
impl Serialize for BVec3
Serialize as a sequence of 3 values.
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BVec3
Auto Trait Implementations§
impl Freeze for BVec3
impl RefUnwindSafe for BVec3
impl Send for BVec3
impl Sync for BVec3
impl Unpin for BVec3
impl UnsafeUnpin for BVec3
impl UnwindSafe for BVec3
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.