Trait hitori::ExprMut

source ·
pub trait ExprMut<Idx, Ch> {
    type Capture;

    // Required method
    fn starts_with_mut<I>(
        &mut self,
        start: Idx,
        is_first: bool,
        iter: I
    ) -> Option<Match<Idx, Self::Capture, I::IntoIter>>
       where I: IntoIterator<Item = (Idx, Ch)>,
             I::IntoIter: Clone;
}
Expand description

Expression with a mutable state

Required Associated Types§

Required Methods§

source

fn starts_with_mut<I>( &mut self, start: Idx, is_first: bool, iter: I ) -> Option<Match<Idx, Self::Capture, I::IntoIter>>where I: IntoIterator<Item = (Idx, Ch)>, I::IntoIter: Clone,

Implementations on Foreign Types§

source§

impl<'a, Idx, Ch, E: Expr<Idx, Ch>> ExprMut<Idx, Ch> for &E

§

type Capture = <E as ExprMut<Idx, Ch>>::Capture

source§

fn starts_with_mut<I>( &mut self, start: Idx, is_first: bool, iter: I ) -> Option<Match<Idx, Self::Capture, I::IntoIter>>where I: IntoIterator<Item = (Idx, Ch)>, I::IntoIter: Clone,

source§

impl<'a, Idx, Ch, E: ExprMut<Idx, Ch>> ExprMut<Idx, Ch> for Box<E>

§

type Capture = <E as ExprMut<Idx, Ch>>::Capture

source§

fn starts_with_mut<I>( &mut self, start: Idx, is_first: bool, iter: I ) -> Option<Match<Idx, Self::Capture, I::IntoIter>>where I: IntoIterator<Item = (Idx, Ch)>, I::IntoIter: Clone,

source§

impl<'a, Idx, Ch, E: ExprMut<Idx, Ch>> ExprMut<Idx, Ch> for &mut E

§

type Capture = <E as ExprMut<Idx, Ch>>::Capture

source§

fn starts_with_mut<I>( &mut self, start: Idx, is_first: bool, iter: I ) -> Option<Match<Idx, Self::Capture, I::IntoIter>>where I: IntoIterator<Item = (Idx, Ch)>, I::IntoIter: Clone,

Implementors§