1 2 3 4 5 6 7
pub(crate) fn ends_with(string: &[u8], suffix: &[u8]) -> bool { string.ends_with(suffix) } pub(crate) fn starts_with(string: &[u8], prefix: &[u8]) -> bool { string.starts_with(prefix) }
1 2 3 4 5 6 7
pub(crate) fn ends_with(string: &[u8], suffix: &[u8]) -> bool { string.ends_with(suffix) } pub(crate) fn starts_with(string: &[u8], prefix: &[u8]) -> bool { string.starts_with(prefix) }