Skip to main content

Stack

Trait Stack 

Source
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§

Source

type Output

the output type

Required Methods§

Source

fn stack(self, dim: i32) -> Self::Output

stacks the data along the given axis

Provided Methods§

Source

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

macro convenience version of the primary method

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Unsqueeze<Output = U>, U> Stack for Vec<T>
where Vec<U>: Cat<Output = Vec<T>>,

Source§

type Output = Vec<T>

Source§

fn stack(self, dim: i32) -> Self::Output

Implementors§