(bytes: &[u8])
| 366 | /// Constructs a Byteset from a slice of bytes. |
| 367 | #[inline] |
| 368 | pub fn from_bytes(bytes: &[u8]) -> Self { |
| 369 | let mut set = Self::new(); |
| 370 | for &b in bytes { |
| 371 | set.add_u8(b); |
| 372 | } |
| 373 | set |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | impl Default for Byteset { |
no test coverage detected