Trait RangeOfSubset

Source
pub trait RangeOfSubset: Sealed {
    // Required method
    fn range_of_subset(&self, subset: &Self) -> Range<usize>;
}

Required Methods§

Source

fn range_of_subset(&self, subset: &Self) -> Range<usize>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RangeOfSubset for str

Source§

fn range_of_subset(&self, subset: &Self) -> Range<usize>

Source§

impl<T> RangeOfSubset for [T]
where T: Debug,

Source§

fn range_of_subset(&self, subset: &Self) -> Range<usize>

Implementors§