Skip to main content

bytes_eq

Function bytes_eq 

Source
pub fn bytes_eq(a: &[u8], b: &[u8]) -> bool
Expand description

Whether a and b hold the same bytes.

The same answer as a == b and the same cost model as memcmp for a long string, without the call for a short one.