pub struct EntireBasis3<S>(/* private fields */);Implementations§
Methods from Deref<Target = Matrix3<S>>§
pub const ROW_COUNT: usize = 3
pub const COL_COUNT: usize = 3
Sourcepub fn is_packed(&self) -> bool
pub fn is_packed(&self) -> bool
Are all elements of this matrix tightly packed together in memory ?
This might not be the case for matrices in the repr_simd module
(it depends on the target architecture).
Sourcepub fn as_col_ptr(&self) -> *const T
pub fn as_col_ptr(&self) -> *const T
Gets a const pointer to this matrix’s elements.
§Panics
Panics if the matrix’s elements are not tightly packed in memory,
which may be the case for matrices in the repr_simd module.
You may check this with the is_packed() method.
Sourcepub fn as_col_slice(&self) -> &[T]
pub fn as_col_slice(&self) -> &[T]
View this matrix as an immutable slice.
§Panics
Panics if the matrix’s elements are not tightly packed in memory,
which may be the case for matrices in the repr_simd module.
You may check this with the is_packed() method.
pub const GL_SHOULD_TRANSPOSE: bool = false
Sourcepub fn gl_should_transpose(&self) -> bool
pub fn gl_should_transpose(&self) -> bool
Gets the transpose parameter to pass to OpenGL glUniformMatrix*() functions.
The return value is a plain bool which you may directly cast
to a GLboolean.
This takes &self to prevent surprises when changing the type
of matrix you plan to send.
Trait Implementations§
Source§impl<S: Clone> Clone for EntireBasis3<S>
impl<S: Clone> Clone for EntireBasis3<S>
Source§fn clone(&self) -> EntireBasis3<S>
fn clone(&self) -> EntireBasis3<S>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<S: Debug> Debug for EntireBasis3<S>
impl<S: Debug> Debug for EntireBasis3<S>
Source§impl<S> Deref for EntireBasis3<S>
impl<S> Deref for EntireBasis3<S>
Source§impl<S: PartialEq> PartialEq for EntireBasis3<S>
impl<S: PartialEq> PartialEq for EntireBasis3<S>
Source§fn eq(&self, other: &EntireBasis3<S>) -> bool
fn eq(&self, other: &EntireBasis3<S>) -> bool
self and other values to be equal, and is used by ==.impl<S: Copy> Copy for EntireBasis3<S>
impl<S: Eq> Eq for EntireBasis3<S>
impl<S> StructuralPartialEq for EntireBasis3<S>
Auto Trait Implementations§
impl<S> Freeze for EntireBasis3<S>where
S: Freeze,
impl<S> RefUnwindSafe for EntireBasis3<S>where
S: RefUnwindSafe,
impl<S> Send for EntireBasis3<S>where
S: Send,
impl<S> Sync for EntireBasis3<S>where
S: Sync,
impl<S> Unpin for EntireBasis3<S>where
S: Unpin,
impl<S> UnsafeUnpin for EntireBasis3<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for EntireBasis3<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more