Function delim::prefixed[][src]

#[must_use]pub fn prefixed<T>(s: &str, delim: &str, len: usize) -> Option<T> where
    T: FromStr,
    T::Err: Debug

Returns a value prefixed by a delimiter.

Arguments

  • self - The delimited string to search.
  • delim - The delimiter prefix.
  • len - The length of the prefixed value, in bytes.

Panics

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