[][src]Trait nom::Offset

pub trait Offset {
    fn offset(&self, second: &Self) -> usize;
}

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

Required methods

fn offset(&self, second: &Self) -> usize

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

Loading content...

Implementations on Foreign Types

impl Offset for [u8][src]

impl<'a> Offset for &'a [u8][src]

impl Offset for str[src]

impl<'a> Offset for &'a str[src]

impl<O, T> Offset for BitSlice<O, T> where
    O: BitOrder,
    T: BitStore
[src]

impl<'a, O, T> Offset for &'a BitSlice<O, T> where
    O: BitOrder,
    T: 'a + BitStore
[src]

Loading content...

Implementors

Loading content...