pub enum MatrixLines {
Rows,
Columns,
Unshown(Unshown),
}Expand description
How a matrix constant’s 16-byte lines hold the matrix the program applies to column vectors (a view-projection’s
clip position is M * p). The layout’s packing (row_major, column_major) does not decide it, since a program may
multiply on either side (mul(M, v), mul(v, M)): iridia::matrix::lines_at reads it from what the program does.
Variants§
Rows
Each line is one of the matrix’s rows.
Columns
Each line is one of its columns.
Unshown(Unshown)
The program does not show which, and why (Unshown). A consumer that writes a matrix unequal to its
transpose (a camera’s) cannot bind it; one that writes the identity can.
Trait Implementations§
Source§impl Clone for MatrixLines
impl Clone for MatrixLines
Source§fn clone(&self) -> MatrixLines
fn clone(&self) -> MatrixLines
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MatrixLines
impl Debug for MatrixLines
impl Eq for MatrixLines
Source§impl PartialEq for MatrixLines
impl PartialEq for MatrixLines
Source§impl Serialize for MatrixLines
impl Serialize for MatrixLines
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MatrixLines
Auto Trait Implementations§
impl Forget for MatrixLines
impl Freeze for MatrixLines
impl RefUnwindSafe for MatrixLines
impl Send for MatrixLines
impl Sync for MatrixLines
impl Unpin for MatrixLines
impl UnsafeUnpin for MatrixLines
impl UnwindSafe for MatrixLines
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
Mutably borrows from an owned value. Read more