Struct shades::V2 [−][src]
Scalar vectors.
Scalar vectors come into three flavors, based on the dimension used:
Each type implements the From
trait for sized array. For instance, if you want to make a V3<f32>
from
constants / literals, you can simply use the implementor From<[f32; 3]> for V3<f32>
.
A builder macro version exists for each flavor:
Those three macros can also be used with literals.
Trait Implementations
impl<'a> Add<V2<f32>> for Expr<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Add<V2<f32>> for Var<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Add<V2<f32>> for &'a Expr<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Add<V2<f32>> for &'a Var<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Add<V2<f32>> for Expr<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Add<V2<f32>> for Var<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Add<V2<f32>> for &'a Expr<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Add<V2<f32>> for &'a Var<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Add<V2<i32>> for Expr<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Add<V2<i32>> for Var<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Add<V2<i32>> for &'a Expr<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Add<V2<i32>> for &'a Var<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Add<V2<u32>> for Expr<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> Add<V2<u32>> for Var<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> Add<V2<u32>> for &'a Expr<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> Add<V2<u32>> for &'a Var<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the +
operator.
fn add(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> BitAnd<V2<bool>> for Expr<V2<bool>>
[src]
type Output = Expr<V2<bool>>
The resulting type after applying the &
operator.
fn bitand(self, rhs: V2<bool>) -> Self::Output
[src]
impl<'a> BitAnd<V2<bool>> for Var<V2<bool>>
[src]
type Output = Expr<V2<bool>>
The resulting type after applying the &
operator.
fn bitand(self, rhs: V2<bool>) -> Self::Output
[src]
impl<'a> BitAnd<V2<bool>> for &'a Expr<V2<bool>>
[src]
type Output = Expr<V2<bool>>
The resulting type after applying the &
operator.
fn bitand(self, rhs: V2<bool>) -> Self::Output
[src]
impl<'a> BitAnd<V2<bool>> for &'a Var<V2<bool>>
[src]
type Output = Expr<V2<bool>>
The resulting type after applying the &
operator.
fn bitand(self, rhs: V2<bool>) -> Self::Output
[src]
impl<'a> BitOr<V2<bool>> for Expr<V2<bool>>
[src]
type Output = Expr<V2<bool>>
The resulting type after applying the |
operator.
fn bitor(self, rhs: V2<bool>) -> Self::Output
[src]
impl<'a> BitOr<V2<bool>> for Var<V2<bool>>
[src]
type Output = Expr<V2<bool>>
The resulting type after applying the |
operator.
fn bitor(self, rhs: V2<bool>) -> Self::Output
[src]
impl<'a> BitOr<V2<bool>> for &'a Expr<V2<bool>>
[src]
type Output = Expr<V2<bool>>
The resulting type after applying the |
operator.
fn bitor(self, rhs: V2<bool>) -> Self::Output
[src]
impl<'a> BitOr<V2<bool>> for &'a Var<V2<bool>>
[src]
type Output = Expr<V2<bool>>
The resulting type after applying the |
operator.
fn bitor(self, rhs: V2<bool>) -> Self::Output
[src]
impl<'a> BitXor<V2<bool>> for Expr<V2<bool>>
[src]
type Output = Expr<V2<bool>>
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: V2<bool>) -> Self::Output
[src]
impl<'a> BitXor<V2<bool>> for Var<V2<bool>>
[src]
type Output = Expr<V2<bool>>
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: V2<bool>) -> Self::Output
[src]
impl<'a> BitXor<V2<bool>> for &'a Expr<V2<bool>>
[src]
type Output = Expr<V2<bool>>
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: V2<bool>) -> Self::Output
[src]
impl<'a> BitXor<V2<bool>> for &'a Var<V2<bool>>
[src]
type Output = Expr<V2<bool>>
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: V2<bool>) -> Self::Output
[src]
impl<T: Clone> Clone for V2<T>
[src]
impl<T: Debug> Debug for V2<T>
[src]
impl<'a> Div<V2<f32>> for Expr<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Div<V2<f32>> for Var<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Div<V2<f32>> for &'a Expr<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Div<V2<f32>> for &'a Var<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Div<V2<f32>> for Expr<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Div<V2<f32>> for Var<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Div<V2<f32>> for &'a Expr<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Div<V2<f32>> for &'a Var<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Div<V2<i32>> for Expr<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Div<V2<i32>> for Var<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Div<V2<i32>> for &'a Expr<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Div<V2<i32>> for &'a Var<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Div<V2<u32>> for Expr<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> Div<V2<u32>> for Var<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> Div<V2<u32>> for &'a Expr<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> Div<V2<u32>> for &'a Var<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the /
operator.
fn div(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> From<&'a V2<bool>> for Expr<V2<bool>>
[src]
impl<'a> From<&'a V2<f32>> for Expr<V2<f32>>
[src]
impl<'a> From<&'a V2<i32>> for Expr<V2<i32>>
[src]
impl<'a> From<&'a V2<u32>> for Expr<V2<u32>>
[src]
impl<T> From<[T; 2]> for V2<T>
[src]
impl From<V2<bool>> for Expr<V2<bool>>
[src]
impl From<V2<f32>> for Expr<V2<f32>>
[src]
impl From<V2<i32>> for Expr<V2<i32>>
[src]
impl From<V2<u32>> for Expr<V2<u32>>
[src]
impl<'a> Mul<V2<f32>> for Expr<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Mul<V2<f32>> for Var<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Mul<V2<f32>> for &'a Expr<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Mul<V2<f32>> for &'a Var<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Mul<V2<f32>> for Expr<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Mul<V2<f32>> for Var<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Mul<V2<f32>> for &'a Expr<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Mul<V2<f32>> for &'a Var<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Mul<V2<i32>> for Expr<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Mul<V2<i32>> for Var<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Mul<V2<i32>> for &'a Expr<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Mul<V2<i32>> for &'a Var<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Mul<V2<u32>> for Expr<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> Mul<V2<u32>> for Var<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> Mul<V2<u32>> for &'a Expr<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> Mul<V2<u32>> for &'a Var<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the *
operator.
fn mul(self, rhs: V2<u32>) -> Self::Output
[src]
impl<T: PartialEq> PartialEq<V2<T>> for V2<T>
[src]
impl<'a> Rem<V2<f32>> for Expr<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the %
operator.
fn rem(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Rem<V2<f32>> for Var<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the %
operator.
fn rem(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Rem<V2<f32>> for &'a Expr<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the %
operator.
fn rem(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Rem<V2<f32>> for &'a Var<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the %
operator.
fn rem(self, rhs: V2<f32>) -> Self::Output
[src]
impl<T> StructuralPartialEq for V2<T>
[src]
impl<'a> Sub<V2<f32>> for Expr<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Sub<V2<f32>> for Var<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Sub<V2<f32>> for &'a Expr<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Sub<V2<f32>> for &'a Var<V2<f32>>
[src]
type Output = Expr<V2<f32>>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Sub<V2<f32>> for Expr<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Sub<V2<f32>> for Var<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Sub<V2<f32>> for &'a Expr<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Sub<V2<f32>> for &'a Var<M22>
[src]
type Output = Expr<M22>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<f32>) -> Self::Output
[src]
impl<'a> Sub<V2<i32>> for Expr<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Sub<V2<i32>> for Var<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Sub<V2<i32>> for &'a Expr<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Sub<V2<i32>> for &'a Var<V2<i32>>
[src]
type Output = Expr<V2<i32>>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<i32>) -> Self::Output
[src]
impl<'a> Sub<V2<u32>> for Expr<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> Sub<V2<u32>> for Var<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> Sub<V2<u32>> for &'a Expr<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<u32>) -> Self::Output
[src]
impl<'a> Sub<V2<u32>> for &'a Var<V2<u32>>
[src]
type Output = Expr<V2<u32>>
The resulting type after applying the -
operator.
fn sub(self, rhs: V2<u32>) -> Self::Output
[src]
impl ToPrimType for V2<i32>
[src]
impl ToPrimType for V2<u32>
[src]
impl ToPrimType for V2<f32>
[src]
impl ToPrimType for V2<bool>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for V2<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for V2<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for V2<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for V2<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for V2<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToType for T where
T: ToPrimType,
[src]
T: ToPrimType,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,