Trait StrFind

Source
pub trait StrFind {
    // Required methods
    fn start_with(&self, s: &[u8]) -> bool;
    fn index_of(&self, s: &[u8]) -> Option<usize>;
}

Required Methods§

Source

fn start_with(&self, s: &[u8]) -> bool

Source

fn index_of(&self, s: &[u8]) -> Option<usize>

Implementations on Foreign Types§

Source§

impl StrFind for Vec<u8>

Source§

fn start_with(&self, s: &[u8]) -> bool

Source§

fn index_of(&self, s: &[u8]) -> Option<usize>

Source§

impl StrFind for [u8]

Source§

fn start_with(&self, s: &[u8]) -> bool

Source§

fn index_of(&self, s: &[u8]) -> Option<usize>

Implementors§