(bytes: &[u8])
| 828 | |
| 829 | impl CFormatBytes { |
| 830 | pub fn parse_from_bytes(bytes: &[u8]) -> Result<Self, CFormatError> { |
| 831 | let mut iter = bytes.iter().cloned().enumerate().peekable(); |
| 832 | Self::parse(&mut iter) |
| 833 | } |
| 834 | } |
| 835 | |
| 836 | pub type CFormatString = CFormatStrOrBytes<String>; |