Struct glucose::Bivector2[][src]

#[repr(C)]pub struct Bivector2<T> {
    pub data: T,
}

Fields

data: T

Implementations

impl<T> Bivector2<T>[src]

pub const fn new(data: T) -> Self[src]

pub fn layout() -> Layout[src]

pub fn as_slice(&self) -> &[T][src]

pub fn as_mut_slice(&mut self) -> &mut [T][src]

pub fn as_byte_slice(&self) -> &[u8][src]

pub fn as_mut_byte_slice(&mut self) -> &mut [u8][src]

pub const fn as_ptr(&self) -> *const T[src]

pub fn as_mut_ptr(&mut self) -> *mut T[src]

impl<T: Scalar> Bivector2<T>[src]

pub fn dot(self, rhs: Self) -> T[src]

impl<T: Scalar + Float> Bivector2<T>[src]

pub fn magnitude_squared(&self) -> T[src]

pub fn magnitude(&self) -> T[src]

pub fn normalize(&mut self)[src]

pub fn normalized(&self) -> Self[src]

Trait Implementations

impl<T: Scalar> Add<Bivector2<T>> for Bivector2<T>[src]

type Output = Self

The resulting type after applying the + operator.

impl<T: Scalar> AddAssign<Bivector2<T>> for Bivector2<T>[src]

impl<T: Clone> Clone for Bivector2<T>[src]

impl<T: Copy> Copy for Bivector2<T>[src]

impl<T: Debug> Debug for Bivector2<T>[src]

impl<T: Default> Default for Bivector2<T>[src]

impl<T: Scalar> Div<Bivector2<T>> for Bivector2<T>[src]

type Output = Self

The resulting type after applying the / operator.

impl<T: Scalar> Div<T> for Bivector2<T>[src]

type Output = Bivector2<T>

The resulting type after applying the / operator.

impl<T: Scalar> DivAssign<Bivector2<T>> for Bivector2<T>[src]

impl<T: Scalar> DivAssign<T> for Bivector2<T>[src]

impl<T: Scalar> Mul<Bivector2<T>> for Bivector2<T>[src]

type Output = Self

The resulting type after applying the * operator.

impl<T: Scalar> Mul<T> for Bivector2<T>[src]

type Output = Self

The resulting type after applying the * operator.

impl<T: Scalar> MulAssign<Bivector2<T>> for Bivector2<T>[src]

impl<T: Scalar> MulAssign<T> for Bivector2<T>[src]

impl<T: Scalar> Neg for Bivector2<T>[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: Scalar> One for Bivector2<T>[src]

impl<T: Scalar> Sub<Bivector2<T>> for Bivector2<T>[src]

type Output = Self

The resulting type after applying the - operator.

impl<T: Scalar> SubAssign<Bivector2<T>> for Bivector2<T>[src]

impl<T: Scalar> Zero for Bivector2<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Bivector2<T> where
    T: RefUnwindSafe

impl<T> Send for Bivector2<T> where
    T: Send

impl<T> Sync for Bivector2<T> where
    T: Sync

impl<T> Unpin for Bivector2<T> where
    T: Unpin

impl<T> UnwindSafe for Bivector2<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.