pub trait Input {
type Checkpoint: Copy + Eq + Ord;
type Slice<'a>
where Self: 'a;
// Required methods
fn checkpoint(&self) -> Self::Checkpoint;
fn reset(&mut self, checkpoint: Self::Checkpoint);
fn offset(&self) -> usize;
fn remaining(&self) -> Self::Slice<'_>;
fn is_eof(&self) -> bool;
}Required Associated Types§
Required Methods§
fn checkpoint(&self) -> Self::Checkpoint
fn reset(&mut self, checkpoint: Self::Checkpoint)
fn offset(&self) -> usize
fn remaining(&self) -> Self::Slice<'_>
fn is_eof(&self) -> bool
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.