pub const fn bytes_end_with(left: &[u8], right: &[u8]) -> bool
Expand description
A const equivalent of
<[u8]>::ends_with
ยงExample
use konst::slice::bytes_end_with;
assert!( bytes_end_with(b"foo,bar,baz", b",baz"));
assert!(!bytes_end_with(b"foo,bar,baz", b"bar"));
assert!(!bytes_end_with(b"foo,bar,baz", b"foo"));