Struct glucose::algebra::linear::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 + ClosedMul> Bivector2<T>[src]

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

impl<T: Scalar + Real + ClosedDiv + ClosedMul> 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 + ClosedAdd> Add<Bivector2<T>> for Bivector2<T>[src]

type Output = Self

The resulting type after applying the + operator.

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

impl<T: Scalar + ClosedAdd + Associative<Additive>> Associative<Additive> for Bivector2<T>[src]

impl<T: Scalar + ClosedMul + Associative<Multiplicative>> Associative<Multiplicative> for Bivector2<T>[src]

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

impl<T: Scalar + ClosedAdd + Commutative<Additive>> Commutative<Additive> for Bivector2<T>[src]

impl<T: Scalar + ClosedMul + Commutative<Multiplicative>> Commutative<Multiplicative> 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 + ClosedDiv> Div<Bivector2<T>> for Bivector2<T>[src]

type Output = Self

The resulting type after applying the / operator.

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

type Output = Bivector2<T>

The resulting type after applying the / operator.

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

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

impl<T: Scalar + Identity<Additive> + ClosedAdd> Identity<Additive> for Bivector2<T>[src]

impl<T: Scalar + Identity<Multiplicative> + ClosedMul> Identity<Multiplicative> for Bivector2<T>[src]

impl<T: Scalar + ClosedAdd + Invertible<Additive>> Invertible<Additive> for Bivector2<T>[src]

impl<T: Scalar + ClosedMul + Invertible<Multiplicative>> Invertible<Multiplicative> for Bivector2<T>[src]

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

type Output = Self

The resulting type after applying the * operator.

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

type Output = Self

The resulting type after applying the * operator.

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

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

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

type Output = Self

The resulting type after applying the - operator.

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

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

impl<T: Scalar + ClosedAdd> Set<Additive> for Bivector2<T>[src]

impl<T: Scalar + ClosedMul> Set<Multiplicative> for Bivector2<T>[src]

impl<T> StructuralPartialEq for Bivector2<T>[src]

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

type Output = Self

The resulting type after applying the - operator.

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

impl<T: Scalar + ClosedAdd + Total<Additive>> Total<Additive> for Bivector2<T>[src]

impl<T: Scalar + ClosedMul + Total<Multiplicative>> Total<Multiplicative> 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, O> AbelianGroup<O> for T where
    T: Group<O> + Commutative<O>,
    O: Operator
[src]

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, Rhs> ClosedAdd<Rhs> for T where
    T: Add<Rhs, Output = T> + AddAssign<Rhs>, 
[src]

impl<T, Rhs> ClosedDiv<Rhs> for T where
    T: Div<Rhs, Output = T> + DivAssign<Rhs>, 
[src]

impl<T, Rhs> ClosedMul<Rhs> for T where
    T: Mul<Rhs, Output = T> + MulAssign<Rhs>, 
[src]

impl<T> ClosedNeg for T where
    T: Neg<Output = T>, 
[src]

impl<T, Rhs> ClosedSub<Rhs> for T where
    T: Sub<Rhs, Output = T> + SubAssign<Rhs>, 
[src]

impl<T, O> CommutativeMonoid<O> for T where
    T: Monoid<O> + Commutative<O>,
    O: Operator
[src]

impl<T> CommutativeRing<Additive, Multiplicative> for T where
    T: AbelianGroup<Additive> + CommutativeMonoid<Multiplicative>, 
[src]

impl<T, O> CommutativeSemigroup<O> for T where
    T: Semigroup<O> + Commutative<O>,
    O: Operator
[src]

impl<T> CommutativeSemiring<Additive, Multiplicative> for T where
    T: CommutativeMonoid<Additive> + CommutativeMonoid<Multiplicative>, 
[src]

impl<T> DivisionRing<Additive, Multiplicative> for T where
    T: AbelianGroup<Additive> + AbelianGroup<Multiplicative>, 
[src]

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

impl<T, O> Group<O> for T where
    T: Magma<O> + Groupoid<O>,
    O: Operator
[src]

impl<T, O> Groupoid<O> for T where
    T: SmallCategory<O> + Invertible<O>,
    O: Operator
[src]

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

impl<T, O> InverseSemigroup<O> for T where
    T: Semigroup<O> + Invertible<O>,
    O: Operator
[src]

impl<T, O> Loop<O> for T where
    T: UnitalMagma<O> + Quasigroup<O>,
    O: Operator
[src]

impl<T, O> Magma<O> for T where
    T: Total<O>,
    O: Operator
[src]

impl<T, O> Monoid<O> for T where
    T: Magma<O> + SmallCategory<O>,
    O: Operator
[src]

impl<T> NearRing<Additive, Multiplicative> for T where
    T: Monoid<Additive> + Semigroup<Multiplicative>, 
[src]

impl<T> One for T where
    T: Identity<Multiplicative> + PartialEq<T>, 
[src]

impl<T, O> Quasigroup<O> for T where
    T: Magma<O> + Invertible<O>,
    O: Operator
[src]

impl<T> Ring<Additive, Multiplicative> for T where
    T: AbelianGroup<Additive> + Monoid<Multiplicative>, 
[src]

impl<T, O> Semigroup<O> for T where
    T: Magma<O> + Semigroupoid<O>,
    O: Operator
[src]

impl<T, O> Semigroupoid<O> for T where
    T: Associative<O>,
    O: Operator
[src]

impl<T> Semiring<Additive, Multiplicative> for T where
    T: CommutativeMonoid<Additive> + Monoid<Multiplicative>, 
[src]

impl<T, O> SmallCategory<O> for T where
    T: Semigroupoid<O> + Identity<O>,
    O: Operator
[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.

impl<T, O> UnitalMagma<O> for T where
    T: Magma<O> + Identity<O>,
    O: Operator
[src]

impl<T> Zero for T where
    T: Identity<Additive> + PartialEq<T>, 
[src]