Trait MutShapeStrideTrait

Source
pub trait MutShapeStrideTrait: ShapeStrideTrait {
    // Required methods
    fn increase_rank(&mut self);
    fn decrease_rank(&mut self);
}

Required Methods§

Source

fn increase_rank(&mut self)

Artificially increase the rank, setting the new dimension shape to 1

Source

fn decrease_rank(&mut self)

Decrease the rank if the leading shape dimension is 1, otherwise panics

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§