1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-03 16:44:06 +02:00

partialeq for LazyBitRead

This commit is contained in:
Robin Appelman 2021-07-20 23:20:26 +02:00
commit 5d7dbe35ee
2 changed files with 3 additions and 3 deletions

View file

@ -18,11 +18,11 @@ pub trait Endianness: private::Sealed {
}
/// Marks the buffer or stream as big endian
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub struct BigEndian;
/// Marks the buffer or stream as little endian
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub struct LittleEndian;
macro_rules! impl_endianness {

View file

@ -685,7 +685,7 @@ impl<'a, E: Endianness, K: BitRead<'a, E> + Eq + Hash, T: BitRead<'a, E>> BitRea
}
}
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
/// Struct that lazily reads it's contents from the stream
pub struct LazyBitRead<'a, T: BitRead<'a, E>, E: Endianness> {
source: BitReadStream<'a, E>,