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
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".