Function delim::matched[][src]

#[must_use]pub fn matched<T>(s: &str, delim: &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 - The delimiter to match within.

Panics

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