pub struct PosWXYZ<Val> {
pub w: Val,
pub x: Val,
pub y: Val,
pub z: Val,
}
Fields§
§w: Val
§x: Val
§y: Val
§z: Val
Implementations§
source§impl<Val: Int> PosWXYZ<Val>
impl<Val: Int> PosWXYZ<Val>
pub const fn new(w: Val, x: Val, y: Val, z: Val) -> Self
pub const ZERO: Self = _
pub const MIN: Self = _
pub const MAX: Self = _
pub fn wane(self, num: Val) -> NumResult<Self>
pub fn wax(self, num: Val) -> NumResult<Self>
pub fn left(self, num: Val) -> NumResult<Self>
pub fn right(self, num: Val) -> NumResult<Self>
pub fn down(self, num: Val) -> NumResult<Self>
pub fn up(self, num: Val) -> NumResult<Self>
pub fn behind(self, num: Val) -> NumResult<Self>
pub fn ahead(self, num: Val) -> NumResult<Self>
Trait Implementations§
source§impl<Val, ArgVal: Int> Add<PosWXYZ<ArgVal>> for PosWXYZ<Val>where
Val: TryAdd<ArgVal, Output = Val> + Int,
impl<Val, ArgVal: Int> Add<PosWXYZ<ArgVal>> for PosWXYZ<Val>where Val: TryAdd<ArgVal, Output = Val> + Int,
source§impl<Val, ArgVal: Int> AddAssign<PosWXYZ<ArgVal>> for PosWXYZ<Val>where
Val: TryAdd<ArgVal, Output = Val> + Int,
impl<Val, ArgVal: Int> AddAssign<PosWXYZ<ArgVal>> for PosWXYZ<Val>where Val: TryAdd<ArgVal, Output = Val> + Int,
source§fn add_assign(&mut self, other: PosWXYZ<ArgVal>)
fn add_assign(&mut self, other: PosWXYZ<ArgVal>)
Performs the
+=
operation. Read moresource§impl<Val: Ord> Ord for PosWXYZ<Val>
impl<Val: Ord> Ord for PosWXYZ<Val>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<Val: PartialEq> PartialEq<PosWXYZ<Val>> for PosWXYZ<Val>
impl<Val: PartialEq> PartialEq<PosWXYZ<Val>> for PosWXYZ<Val>
source§impl<Val: PartialOrd> PartialOrd<PosWXYZ<Val>> for PosWXYZ<Val>
impl<Val: PartialOrd> PartialOrd<PosWXYZ<Val>> for PosWXYZ<Val>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<Val, ArgVal: Int> Sub<PosWXYZ<ArgVal>> for PosWXYZ<Val>where
Val: TrySub<ArgVal, Output = Val> + Int,
impl<Val, ArgVal: Int> Sub<PosWXYZ<ArgVal>> for PosWXYZ<Val>where Val: TrySub<ArgVal, Output = Val> + Int,
source§impl<Val, ArgVal: Int> TryAdd<PosWXYZ<ArgVal>> for PosWXYZ<Val>where
Val: TryAdd<ArgVal, Output = Val> + Int,
impl<Val, ArgVal: Int> TryAdd<PosWXYZ<ArgVal>> for PosWXYZ<Val>where Val: TryAdd<ArgVal, Output = Val> + Int,
source§impl<Val, ArgVal: Int> TrySub<PosWXYZ<ArgVal>> for PosWXYZ<Val>where
Val: TrySub<ArgVal, Output = Val> + Int,
impl<Val, ArgVal: Int> TrySub<PosWXYZ<ArgVal>> for PosWXYZ<Val>where Val: TrySub<ArgVal, Output = Val> + Int,
impl<Val: Copy> Copy for PosWXYZ<Val>
impl<Val: Eq> Eq for PosWXYZ<Val>
impl<Val> StructuralEq for PosWXYZ<Val>
impl<Val> StructuralPartialEq for PosWXYZ<Val>
Auto Trait Implementations§
impl<Val> RefUnwindSafe for PosWXYZ<Val>where Val: RefUnwindSafe,
impl<Val> Send for PosWXYZ<Val>where Val: Send,
impl<Val> Sync for PosWXYZ<Val>where Val: Sync,
impl<Val> Unpin for PosWXYZ<Val>where Val: Unpin,
impl<Val> UnwindSafe for PosWXYZ<Val>where Val: UnwindSafe,
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