Searched refs:BitReaderError (Results 1 – 2 of 2) sorted by relevance
182 Err(BitReaderError::NotEnoughData { in read_u8_slice()287 return Err(BitReaderError::NotEnoughData { in skip()355 Err(BitReaderError::TooManyBitsForType { in too_many_bits_for_type_error()378 return Err(BitReaderError::NotEnoughData { in read_bits()406 pub type Result<T> = result::Result<T, BitReaderError>;410 pub enum BitReaderError { enum432 impl Error for BitReaderError { implementation435 … BitReaderError::NotEnoughData {..} => "Requested more bits than the byte slice has left", in description()436 …BitReaderError::TooManyBitsForType {..} => "Requested more bits than the requested integer type ca… in description()441 impl fmt::Display for BitReaderError { implementation[all …]
190 assert_eq!(reader.read_u8(9).unwrap_err(), BitReaderError::TooManyBitsForType { in errors()201 assert_eq!(reader.read_u32(21).unwrap_err(), BitReaderError::NotEnoughData { in errors()280 assert_eq!(should_be_error.unwrap_err(), BitReaderError::NotEnoughData { in read_slice_too_much()302 assert_eq!(reader.read_u8(1).unwrap_err(), BitReaderError::NotEnoughData { in relative_reader()312 assert_eq!(relative_reader.read_u8(1).unwrap_err(), BitReaderError::NotEnoughData { in relative_reader()