combine::stream

Trait Resetable

Source
pub trait Resetable {
    type Checkpoint: Clone;

    // Required methods
    fn checkpoint(&self) -> Self::Checkpoint;
    fn reset(&mut self, checkpoint: Self::Checkpoint);
}

Required Associated Types§

Required Methods§

Source

fn checkpoint(&self) -> Self::Checkpoint

Source

fn reset(&mut self, checkpoint: Self::Checkpoint)

Implementations on Foreign Types§

Source§

impl<'a> Resetable for &'a str

Source§

type Checkpoint = &'a str

Source§

fn checkpoint(&self) -> Self

Source§

fn reset(&mut self, checkpoint: Self)

Source§

impl<'a, T> Resetable for &'a [T]

Source§

type Checkpoint = &'a [T]

Source§

fn checkpoint(&self) -> Self

Source§

fn reset(&mut self, checkpoint: Self)

Implementors§