pub trait StrDrive: Copy {
// Required methods
fn offset(&self, offset: usize, skip: usize) -> usize;
fn count(&self) -> usize;
fn peek(&self, offset: usize) -> u32;
fn back_peek(&self, offset: usize) -> u32;
fn back_offset(&self, offset: usize, skip: usize) -> usize;
}
Required Methods§
fn offset(&self, offset: usize, skip: usize) -> usize
fn count(&self) -> usize
fn peek(&self, offset: usize) -> u32
fn back_peek(&self, offset: usize) -> u32
fn back_offset(&self, offset: usize, skip: usize) -> usize
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.