Trait ArrayShr

Source
pub trait ArrayShr<T, const N: usize>: ArrayMap<T, N> {
    // Required methods
    const fn shr_all<Rhs>(self, rhs: Rhs) -> [<T as Shr<Rhs>>::Output; N]
       where T: Shr<Rhs>,
             Rhs: Copy;
    const async fn shr_all_async<Rhs>(
        self,
        rhs: Rhs,
    ) -> [<T as Shr<Rhs>>::Output; N]
       where T: Shr<Rhs>,
             Rhs: Copy;
    const fn shr_each<Rhs>(self, rhs: Rhs) -> [<T as Shr<Rhs::Elem>>::Output; N]
       where T: Shr<Rhs::Elem>,
             Rhs: ArrayForm<N>;
    const async fn shr_each_async<Rhs>(
        self,
        rhs: Rhs,
    ) -> [<T as Shr<Rhs::Elem>>::Output; N]
       where T: Shr<Rhs::Elem>,
             Rhs: ArrayForm<N>;
}

Required Methods§

Source

const fn shr_all<Rhs>(self, rhs: Rhs) -> [<T as Shr<Rhs>>::Output; N]
where T: Shr<Rhs>, Rhs: Copy,

Source

const async fn shr_all_async<Rhs>( self, rhs: Rhs, ) -> [<T as Shr<Rhs>>::Output; N]
where T: Shr<Rhs>, Rhs: Copy,

Source

const fn shr_each<Rhs>(self, rhs: Rhs) -> [<T as Shr<Rhs::Elem>>::Output; N]
where T: Shr<Rhs::Elem>, Rhs: ArrayForm<N>,

Source

const async fn shr_each_async<Rhs>( self, rhs: Rhs, ) -> [<T as Shr<Rhs::Elem>>::Output; N]
where T: Shr<Rhs::Elem>, Rhs: ArrayForm<N>,

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.

Implementations on Foreign Types§

Source§

impl<T, const N: usize> ArrayShr<T, N> for [T; N]

Source§

fn shr_all<Rhs>(self, rhs: Rhs) -> [<T as Shr<Rhs>>::Output; N]
where T: Shr<Rhs>, Rhs: Copy,

Source§

async fn shr_all_async<Rhs>(self, rhs: Rhs) -> [<T as Shr<Rhs>>::Output; N]
where T: Shr<Rhs>, Rhs: Copy,

Source§

fn shr_each<Rhs>(self, rhs: Rhs) -> [<T as Shr<Rhs::Elem>>::Output; N]
where T: Shr<Rhs::Elem>, Rhs: ArrayForm<N>,

Source§

async fn shr_each_async<Rhs>( self, rhs: Rhs, ) -> [<T as Shr<Rhs::Elem>>::Output; N]
where T: Shr<Rhs::Elem>, Rhs: ArrayForm<N>,

Implementors§