Struct coord::prelude::Vec1 [−][src]
pub struct Vec1<T: VecItem> { pub x: T, }
Fields
x: T
Methods
impl<T: VecItem> Vec1<T>
[src]
impl<T: VecItem> Vec1<T>
Trait Implementations
impl<T: Copy + VecItem> Copy for Vec1<T>
[src]
impl<T: Copy + VecItem> Copy for Vec1<T>
impl<T: Clone + VecItem> Clone for Vec1<T>
[src]
impl<T: Clone + VecItem> Clone for Vec1<T>
fn clone(&self) -> Vec1<T>
[src]
fn clone(&self) -> Vec1<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Debug + VecItem> Debug for Vec1<T>
[src]
impl<T: Debug + VecItem> Debug for Vec1<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: VecItem> From<T> for Vec1<T>
[src]
impl<T: VecItem> From<T> for Vec1<T>
impl<T: VecItem> From<[T; 1]> for Vec1<T>
[src]
impl<T: VecItem> From<[T; 1]> for Vec1<T>
impl<T> Add for Vec1<T> where
T: VecItem + Add,
T::Output: VecItem + Add + Copy,
[src]
impl<T> Add for Vec1<T> where
T: VecItem + Add,
T::Output: VecItem + Add + Copy,
type Output = Vec1<T::Output>
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Vec1<T::Output>
[src]
fn add(self, other: Self) -> Vec1<T::Output>
Performs the +
operation.
impl<T> Sub for Vec1<T> where
T: VecItem + Sub,
T::Output: VecItem + Sub + Copy,
[src]
impl<T> Sub for Vec1<T> where
T: VecItem + Sub,
T::Output: VecItem + Sub + Copy,
type Output = Vec1<T::Output>
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Vec1<T::Output>
[src]
fn sub(self, other: Self) -> Vec1<T::Output>
Performs the -
operation.
impl<T> Mul for Vec1<T> where
T: VecItem + Mul,
T::Output: VecItem + Mul + Copy,
[src]
impl<T> Mul for Vec1<T> where
T: VecItem + Mul,
T::Output: VecItem + Mul + Copy,
type Output = Vec1<T::Output>
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Vec1<T::Output>
[src]
fn mul(self, other: Self) -> Vec1<T::Output>
Performs the *
operation.
impl<T> Div for Vec1<T> where
T: VecItem + Div,
T::Output: VecItem + Div + Copy,
[src]
impl<T> Div for Vec1<T> where
T: VecItem + Div,
T::Output: VecItem + Div + Copy,