SwapDims

Trait SwapDims 

Source
pub trait SwapDims {
    type Output;

    // Required method
    fn swap_dims(self, a: i32, b: i32) -> Self::Output;

    // Provided method
    fn _apply(self, a: i32, b: i32) -> Self::Output
       where Self: Sized { ... }
}
Expand description

trait to represent the operation

Required Associated Types§

Source

type Output

the output type

Required Methods§

Source

fn swap_dims(self, a: i32, b: i32) -> Self::Output

computes the operation

Provided Methods§

Source

fn _apply(self, a: i32, b: i32) -> Self::Output
where Self: Sized,

macro convenience version of the primary method

Implementors§