Trait combine::stream::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

§

type Checkpoint = &'a str

source§

fn checkpoint(&self) -> Self

source§

fn reset(&mut self, checkpoint: Self)

source§

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

§

type Checkpoint = &'a [T]

source§

fn checkpoint(&self) -> Self

source§

fn reset(&mut self, checkpoint: Self)

Implementors§