pub fn is_suffix(haystack: &[u8], needle: &[u8]) -> boolExpand description
Returns true if and only if needle is a suffix of haystack.
This uses a latency optimized variant of memcmp internally which might
make this faster for very short strings.
§Inlining
This routine is marked inline(always). If you want to call this function
in a way that is not always inlined, you’ll need to wrap a call to it in
another function that is marked as inline(never) or just inline.