Type Alias typed_path::ParseError
source · pub type ParseError = &'static str;
Trait Implementations§
1.0.0 · source§impl !Error for &str
impl !Error for &str
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§impl<'a, 'b> PartialEq<Cow<'a, str>> for &'b str
impl<'a, 'b> PartialEq<Cow<'a, str>> for &'b str
1.29.0 · source§impl<'a> PartialEq<OsString> for &'a str
impl<'a> PartialEq<OsString> for &'a str
source§impl<'a, T> PartialEq<Utf8Path<T>> for &'a strwhere
T: for<'enc> Utf8Encoding<'enc>,
impl<'a, T> PartialEq<Utf8Path<T>> for &'a strwhere T: for<'enc> Utf8Encoding<'enc>,
source§impl<'a, T> PartialEq<Utf8PathBuf<T>> for &'a strwhere
T: for<'enc> Utf8Encoding<'enc>,
impl<'a, T> PartialEq<Utf8PathBuf<T>> for &'a strwhere T: for<'enc> Utf8Encoding<'enc>,
source§fn eq(&self, other: &Utf8PathBuf<T>) -> bool
fn eq(&self, other: &Utf8PathBuf<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, T> PartialOrd<Utf8Path<T>> for &'a strwhere
T: for<'enc> Utf8Encoding<'enc>,
impl<'a, T> PartialOrd<Utf8Path<T>> for &'a strwhere T: for<'enc> Utf8Encoding<'enc>,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, T> PartialOrd<Utf8PathBuf<T>> for &'a strwhere
T: for<'enc> Utf8Encoding<'enc>,
impl<'a, T> PartialOrd<Utf8PathBuf<T>> for &'a strwhere T: for<'enc> Utf8Encoding<'enc>,
source§fn partial_cmp(&self, other: &Utf8PathBuf<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Utf8PathBuf<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> Pattern<'a> for &'b str
impl<'a, 'b> Pattern<'a> for &'b str
Non-allocating substring search.
Will handle the pattern ""
as returning empty matches at each character
boundary.
Examples
assert_eq!("Hello world".find("world"), Some(6));
source§fn is_prefix_of(self, haystack: &'a str) -> bool
🔬This is a nightly-only experimental API. (pattern
)
fn is_prefix_of(self, haystack: &'a str) -> bool
pattern
)Checks whether the pattern matches at the front of the haystack.
source§fn is_contained_in(self, haystack: &'a str) -> bool
🔬This is a nightly-only experimental API. (pattern
)
fn is_contained_in(self, haystack: &'a str) -> bool
pattern
)Checks whether the pattern matches anywhere in the haystack
source§fn strip_prefix_of(self, haystack: &'a str) -> Option<&'a str>
🔬This is a nightly-only experimental API. (pattern
)
fn strip_prefix_of(self, haystack: &'a str) -> Option<&'a str>
pattern
)Removes the pattern from the front of haystack, if it matches.
source§fn is_suffix_of(self, haystack: &'a str) -> bool
🔬This is a nightly-only experimental API. (pattern
)
fn is_suffix_of(self, haystack: &'a str) -> bool
pattern
)Checks whether the pattern matches at the back of the haystack.
source§fn strip_suffix_of(self, haystack: &'a str) -> Option<&'a str>
🔬This is a nightly-only experimental API. (pattern
)
fn strip_suffix_of(self, haystack: &'a str) -> Option<&'a str>
pattern
)Removes the pattern from the back of haystack, if it matches.
§type Searcher = StrSearcher<'a, 'b>
type Searcher = StrSearcher<'a, 'b>
🔬This is a nightly-only experimental API. (
pattern
)Associated searcher for this pattern
source§fn into_searcher(self, haystack: &'a str) -> StrSearcher<'a, 'b>
fn into_searcher(self, haystack: &'a str) -> StrSearcher<'a, 'b>
🔬This is a nightly-only experimental API. (
pattern
)Constructs the associated searcher from
self
and the haystack
to search in.