pub trait Stack {
type Output;
// Required method
fn stack(self, dim: i32) -> Self::Output;
// Provided method
fn _apply(self, dim: i32) -> Self::Output
where Self: Sized { ... }
}Expand description
trait to represent the operation