[][src]Trait subslice::SubsliceExt

pub trait SubsliceExt: Sealed {
    fn find(&self, other: &Self) -> Option<usize>;
fn rfind(&self, other: &Self) -> Option<usize>; }

Required methods

fn find(&self, other: &Self) -> Option<usize>

Find the first subslice of self which is equal to other, and return the index of its start.

fn rfind(&self, other: &Self) -> Option<usize>

Find the last subslice of self which is equal to other, and return the index of its start.

Loading content...

Implementors

impl SubsliceExt for str
[src]

impl<A: Ord> SubsliceExt for [A]
[src]

Loading content...