[][src]Trait melib::email::parser::BytesExt

pub trait BytesExt {
    fn rtrim(&self) -> &Self;
fn ltrim(&self) -> &Self;
fn trim(&self) -> &Self;
fn find<T: AsRef<[u8]>>(&self, needle: T) -> Option<usize>;
fn rfind<T: AsRef<[u8]>>(&self, needle: T) -> Option<usize>;
fn replace(&self, from: &[u8], to: &[u8]) -> Vec<u8>;
fn is_quoted(&self) -> bool; fn trim_start(&self) -> &Self { ... }
fn trim_end(&self) -> &Self { ... }
fn contains_subsequence<T: AsRef<[u8]>>(&self, needle: T) -> bool { ... } }

Required methods

fn rtrim(&self) -> &Self

fn ltrim(&self) -> &Self

fn trim(&self) -> &Self

fn find<T: AsRef<[u8]>>(&self, needle: T) -> Option<usize>

fn rfind<T: AsRef<[u8]>>(&self, needle: T) -> Option<usize>

fn replace(&self, from: &[u8], to: &[u8]) -> Vec<u8>

fn is_quoted(&self) -> bool

Loading content...

Provided methods

fn trim_start(&self) -> &Self

fn trim_end(&self) -> &Self

fn contains_subsequence<T: AsRef<[u8]>>(&self, needle: T) -> bool

Loading content...

Implementations on Foreign Types

impl BytesExt for [u8][src]

Loading content...

Implementors

Loading content...