[][src]Struct aljabar::Point

#[repr(transparent)]
pub struct Point<T, const N: usize>(_);

A point in space.

Methods

impl<T, const N: usize> Point<T, { N }>[src]

pub fn from_vec(vec: Vector<T, { N }>) -> Self[src]

Constructs a point from an appropriately sized vector.

Trait Implementations

impl<T, const N: usize> Clone for Point<T, { N }> where
    T: Clone
[src]

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

Performs copy-assignment from source. Read more

impl<T, const N: usize> From<[T; N]> for Point<T, { N }>[src]

impl<T, const N: usize> Into<[T; N]> for Point<T, { N }>[src]

impl<T, const N: usize> Copy for Point<T, { N }> where
    T: Copy
[src]

impl<T, const N: usize> Deref for Point<T, { N }>[src]

type Target = [T; {N}]

The resulting type after dereferencing.

impl<T, const N: usize> Debug for Point<T, { N }> where
    T: Debug
[src]

impl<A, B, const N: usize> Add<Vector<B, N>> for Point<A, { N }> where
    A: Add<B>, 
[src]

type Output = Point<<A as Add<B>>::Output, { N }>

The resulting type after applying the + operator.

impl<A, B, const N: usize> Sub<Vector<B, N>> for Point<A, { N }> where
    A: Sub<B>, 
[src]

type Output = Point<<A as Sub<B>>::Output, { N }>

The resulting type after applying the - operator.

impl<A, B, const N: usize> Sub<Point<B, N>> for Point<A, { N }> where
    A: Sub<B>, 
[src]

type Output = Vector<<A as Sub<B>>::Output, { N }>

The resulting type after applying the - operator.

impl<T, const N: usize> DerefMut for Point<T, { N }>[src]

impl<T, const N: usize> Hash for Point<T, { N }> where
    T: Hash
[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

Auto Trait Implementations

impl<const N: usize, T> Unpin for Point<T, N> where
    T: Unpin

impl<const N: usize, T> Sync for Point<T, N> where
    T: Sync

impl<const N: usize, T> Send for Point<T, N> where
    T: Send

impl<const N: usize, T> UnwindSafe for Point<T, N> where
    T: UnwindSafe

impl<const N: usize, T> RefUnwindSafe for Point<T, N> where
    T: RefUnwindSafe

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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]