1 2 3 4 5 6 7 8 9 10 11
use crate::Buffer; impl PartialEq for Buffer { fn eq(&self, other: &Self) -> bool { if self.len() != other.len() { return false; } self[..] == other[..] } }