Trait winnow::stream::Offset

source ·
pub trait Offset {
    fn offset_to(&self, second: &Self) -> usize;
}
Expand description

Useful functions to calculate the offset between slices and show a hexdump of a slice

Required Methods§

Offset between the first byte of self and the first byte of the argument

Implementations on Foreign Types§

Convenience implementation to accept &[T] instead of &&[T] as above

Convenience implementation to accept &str instead of &&str as above

Implementors§