pub trait Range {
// Required method
fn sub_nearest<'a>(&self, obj: &'a str) -> &'a str;
}Available on crate feature
string only.Expand description
The range trait that represents all supported range types for sub_nearest method.
Required Methods§
Sourcefn sub_nearest<'a>(&self, obj: &'a str) -> &'a str
fn sub_nearest<'a>(&self, obj: &'a str) -> &'a str
The actual implementation of nearest substring, see sub_nearest for more information.