Struct glucose::Bivector2 [−][src]
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]
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.
fn add(self, rhs: Bivector2<T>) -> Self
[src]
impl<T: Scalar> AddAssign<Bivector2<T>> for Bivector2<T>
[src]
fn add_assign(&mut self, rhs: 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.
fn div(self, rhs: Bivector2<T>) -> Self
[src]
impl<T: Scalar> Div<T> for Bivector2<T>
[src]
type Output = Bivector2<T>
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Bivector2<T>
[src]
impl<T: Scalar> DivAssign<Bivector2<T>> for Bivector2<T>
[src]
fn div_assign(&mut self, rhs: Self)
[src]
impl<T: Scalar> DivAssign<T> for Bivector2<T>
[src]
fn div_assign(&mut self, rhs: T)
[src]
impl<T: Scalar> Mul<Bivector2<T>> for Bivector2<T>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Bivector2<T>) -> Self
[src]
impl<T: Scalar> Mul<T> for Bivector2<T>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self
[src]
impl<T: Scalar> MulAssign<Bivector2<T>> for Bivector2<T>
[src]
fn mul_assign(&mut self, rhs: Self)
[src]
impl<T: Scalar> MulAssign<T> for Bivector2<T>
[src]
fn mul_assign(&mut self, rhs: T)
[src]
impl<T: Scalar> Neg for Bivector2<T>
[src]
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.
fn sub(self, rhs: Bivector2<T>) -> Self
[src]
impl<T: Scalar> SubAssign<Bivector2<T>> for Bivector2<T>
[src]
fn sub_assign(&mut self, rhs: Bivector2<T>)
[src]
impl<T: Scalar> Zero for Bivector2<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Bivector2<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Bivector2<T> where
T: Send,
T: Send,
impl<T> Sync for Bivector2<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Bivector2<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Bivector2<T> where
T: UnwindSafe,
T: 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> Configure for T where
T: ?Sized,
[src]
T: ?Sized,
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>,