[][src]Struct nalgebra::base::coordinates::XY

#[repr(C)]
pub struct XY<N: Scalar> {
    pub x: N,
    pub y: N,
}

Data structure used to provide access to matrix and vector coordinates with the dot notation, e.g., v.x is the same as v[0] for a vector.

Fields

x: Ny: N

Trait Implementations

impl<N: Copy + Scalar> Copy for XY<N>[src]

impl<N: Eq + Scalar> Eq for XY<N>[src]

impl<N: Clone + Scalar> Clone for XY<N>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<N: PartialEq + Scalar> PartialEq<XY<N>> for XY<N>[src]

impl<N: Hash + Scalar> Hash for XY<N>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<N: Debug + Scalar> Debug for XY<N>[src]

impl<N: Scalar> Serialize for XY<N> where
    N: Serialize
[src]

impl<'de, N: Scalar> Deserialize<'de> for XY<N> where
    N: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<N> Unpin for XY<N> where
    N: Unpin

impl<N> Sync for XY<N> where
    N: Sync

impl<N> Send for XY<N> where
    N: Send

impl<N> UnwindSafe for XY<N> where
    N: UnwindSafe

impl<N> RefUnwindSafe for XY<N> where
    N: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]