Function delim::mismatched[][src]

#[must_use]pub fn mismatched<T>(s: &str, delim_start: &str, delim_end: &str) -> Option<T> where
    T: FromStr,
    T::Err: Debug

Returns a value between matched delimiters from part of a string.

Arguments

  • self - The delimited string to search.
  • delim_start - The opening delimiter.
  • delim_end - The closing delimiter.

Panics

If the matched value cannot be parsed to the specified type.