Struct nalgebra::base::coordinates::M2x2 [−][src]
#[repr(C)]pub struct M2x2<T: Scalar> { pub m11: T, pub m21: T, pub m12: T, pub m22: T, }
Expand description
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
m11: T
m21: T
m12: T
m22: T
Trait Implementations
impl<T: Copy + Scalar> Copy for M2x2<T>
[src]
impl<T: Eq + Scalar> Eq for M2x2<T>
[src]
impl<T: Scalar> StructuralEq for M2x2<T>
[src]
impl<T: Scalar> StructuralPartialEq for M2x2<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for M2x2<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for M2x2<T> where
T: Send,
T: Send,
impl<T> Sync for M2x2<T> where
T: Sync,
T: Sync,
impl<T> Unpin for M2x2<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for M2x2<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn to_subset(&self) -> Option<SS>
[src]The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
[src]
pub fn is_in_subset(&self) -> bool
[src]Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
[src]
pub fn from_subset(element: &SS) -> SP
[src]The inclusion map: converts self
to the equivalent element of its superset.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,