pub enum MatmulIdent {
    Lhs,
    Rhs,
    Out,
}Expand description
Identifier for all three tensors in a matmul
Useful to specialize some functions depending on the tensor
Variants§
Implementations§
Source§impl MatmulIdent
 
impl MatmulIdent
Sourcepub fn into_stage(self) -> StageIdent
 
pub fn into_stage(self) -> StageIdent
Equivalent to into, but type inference works better within Cube functions
pub fn view_direction(&self) -> ViewDirection
Trait Implementations§
Source§impl Clone for MatmulIdent
 
impl Clone for MatmulIdent
Source§fn clone(&self) -> MatmulIdent
 
fn clone(&self) -> MatmulIdent
Returns a duplicate of the value. Read more
1.0.0 · 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 MatmulIdent
 
impl Debug for MatmulIdent
Source§impl From<MatmulIdent> for StageIdent
 
impl From<MatmulIdent> for StageIdent
Source§fn from(matmul_ident: MatmulIdent) -> Self
 
fn from(matmul_ident: MatmulIdent) -> Self
Converts to this type from the input type.
Source§impl Hash for MatmulIdent
 
impl Hash for MatmulIdent
Source§impl PartialEq for MatmulIdent
 
impl PartialEq for MatmulIdent
impl Copy for MatmulIdent
impl Eq for MatmulIdent
impl StructuralPartialEq for MatmulIdent
Auto Trait Implementations§
impl Freeze for MatmulIdent
impl RefUnwindSafe for MatmulIdent
impl Send for MatmulIdent
impl Sync for MatmulIdent
impl Unpin for MatmulIdent
impl UnwindSafe for MatmulIdent
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.