ForEach

Trait ForEach 

Source
pub trait ForEach<F>: HList {
    // Required method
    fn for_each(self, f: F);
}

Required Methods§

Source

fn for_each(self, f: F)

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<F> ForEach<F> for HNil

Source§

fn for_each(self, _: F)

Source§

impl<F: Func<Head, Output = ()>, Head, Tail: ForEach<F>> ForEach<F> for HCons<Head, Tail>

Source§

fn for_each(self, f: F)

Implementors§