/// Strip prefixes, suffixes, and inline code marks from the given string.
Strip prefixes, suffixes, and inline code marks from the given string.
Strip prefixes suffixes and inline code marks from the given string .
fn strip_prefixes_suffixes(mut s: &str) -> &str {
    s = s.trim_matches('`');
    [
        (TYPES.0.iter(), TYPES.1.iter()),
        (VALUES.0.iter(), VALUES.1.iter()),
        (MACROS.0.iter(), MACROS.1.iter()),
    ]
    .iter()
    .for_each(|(prefixes, suffixes)| {
        prefixes.clone().for_each(|prefix| s = s.trim_start_matches(*prefix));
        suffixes.clone().for_each(|suffix| s = s.trim_end_matches(*suffix));
    });
    s.trim_start_matches('@').trim()
}
fn strip_prefixes_suffixes ( mut s : & str ) -> & str { s = s . trim_matches ( '`' ) ; [ ( TYPES . 0 . iter ( ) , TYPES . 1 . iter ( ) ) , ( VALUES . 0 . iter ( ) , VALUES . 1 . iter ( ) ) , ( MACROS . 0 . iter ( ) , MACROS . 1 . iter ( ) ) , ] . iter ( ) . for_each ( | ( prefixes , suffixes ) | { prefixes . clone ( ) . for_each ( | prefix | s = s . trim_start_matches ( * prefix ) ) ; suffixes . clone ( ) . for_each ( | suffix | s = s . trim_end_matches ( * suffix ) ) ; } ) ; s . trim_start_matches ( '@' ) . trim ( ) }
Strip prefixes, suffixes, and inline code marks from the given string.
Strip prefixes suffixes and inline code marks from the given string .
s
&str