[−][src]Struct stl_io::Vector
Float Vector with approx_eq.
Implementations
impl<F> Vector<F>
[src]
Trait Implementations
impl<'a, M: Copy + Default, F: Copy + ApproxEq<Margin = M>> ApproxEq for &'a Vector<F>
[src]
type Margin = M
This type type defines a margin within which two values are to be
considered approximately equal. It must implement Default
so that
approx_eq()
can be called on unknown types. Read more
pub fn approx_eq<T: Into<Self::Margin>>(self, other: Self, margin: T) -> bool
[src]
pub fn approx_ne<M>(self, other: Self, margin: M) -> bool where
M: Into<Self::Margin>,
[src]
M: Into<Self::Margin>,
impl<F: Clone> Clone for Vector<F>
[src]
impl<F: Copy> Copy for Vector<F>
[src]
impl<F: Debug> Debug for Vector<F>
[src]
impl<F: Default> Default for Vector<F>
[src]
impl<F> From<Vector<F>> for [F; 3]
[src]
impl<F> Index<usize> for Vector<F>
[src]
type Output = F
The returned type after indexing.
pub fn index(&self, i: usize) -> &Self::Output
[src]
impl<F: PartialEq> PartialEq<Vector<F>> for Vector<F>
[src]
impl<F: PartialOrd> PartialOrd<Vector<F>> for Vector<F>
[src]
pub fn partial_cmp(&self, other: &Vector<F>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Vector<F>) -> bool
[src]
pub fn le(&self, other: &Vector<F>) -> bool
[src]
pub fn gt(&self, other: &Vector<F>) -> bool
[src]
pub fn ge(&self, other: &Vector<F>) -> bool
[src]
impl<F> StructuralPartialEq for Vector<F>
[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for Vector<F> where
F: RefUnwindSafe,
[src]
F: RefUnwindSafe,
impl<F> Send for Vector<F> where
F: Send,
[src]
F: Send,
impl<F> Sync for Vector<F> where
F: Sync,
[src]
F: Sync,
impl<F> Unpin for Vector<F> where
F: Unpin,
[src]
F: Unpin,
impl<F> UnwindSafe for Vector<F> where
F: UnwindSafe,
[src]
F: 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, 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>,