Skip to main content

Projection

Trait Projection 

Source
pub trait Projection<E> {
    const LEN: usize;

    // Required method
    fn try_for_each<F>(
        &self,
        visit: impl FnMut(&E) -> Result<(), F>,
    ) -> Result<(), F>;
}

Required Associated Constants§

Required Methods§

Source

fn try_for_each<F>( &self, visit: impl FnMut(&E) -> Result<(), F>, ) -> Result<(), F>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<E, L, R> Projection<E> for (L, R)
where L: Projection<E>, R: Projection<E>,

Source§

const LEN: usize

Source§

fn try_for_each<F>( &self, visit: impl FnMut(&E) -> Result<(), F>, ) -> Result<(), F>

Source§

impl<E, const N: usize> Projection<E> for [E; N]

Source§

const LEN: usize = N

Source§

fn try_for_each<F>( &self, visit: impl FnMut(&E) -> Result<(), F>, ) -> Result<(), F>

Source§

impl<E> Projection<E> for ()

Source§

const LEN: usize = 0

Source§

fn try_for_each<F>(&self, _: impl FnMut(&E) -> Result<(), F>) -> Result<(), F>

Implementors§