Skip to main content

Shift

Trait Shift 

Source
pub trait Shift<M> {
    type By: Copy;

    // Required method
    fn shifted(self, by: Self::By) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn shifted(self, by: Self::By) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§