Trait rocket::mtls::oid::asn1_rs::nom::Offset

source ·
pub trait Offset {
    // Required method
    fn offset(&self, second: &Self) -> usize;
}
Available on crate feature mtls only.
Expand description

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

Required Methods§

source

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

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Offset for str

source§

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

source§

impl Offset for [u8]

source§

fn offset(&self, second: &[u8]) -> usize

source§

impl<'a> Offset for &'a str

source§

fn offset(&self, second: &&'a str) -> usize

source§

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

source§

fn offset(&self, second: &&'a [u8]) -> usize

Implementors§