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:
parent
9e0fa4df0b
commit
5d7dbe35ee
2 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue