[][src]Trait smart_access::traversal::Each

pub trait Each: Sized {
    type View: ?Sized;
    fn each<F>(self, f: F) -> bool
    where
        F: FnMut(&mut Self::View) -> bool
; fn of<Index>(self, i: Index) -> AT<Self, ((), Index)>
    where
        Self::View: Of<Index>,
        Index: Clone
, { ... } }

An analogue of the Cps trait.

Associated Types

type View: ?Sized

Loading content...

Required methods

fn each<F>(self, f: F) -> bool where
    F: FnMut(&mut Self::View) -> bool, 

Loading content...

Provided methods

fn of<Index>(self, i: Index) -> AT<Self, ((), Index)> where
    Self::View: Of<Index>,
    Index: Clone

Loading content...

Implementors

impl<'_, T: ?Sized> Each for &'_ mut T[src]

type View = T

impl<CPS: Each, Path> Each for AT<CPS, Path> where
    Path: OfView<CPS::View>, 
[src]

type View = Path::View

Loading content...