pub struct Decoder<const N: usize, T: Symbol<N>> { /* private fields */ }Expand description
The decoder to calculate set differences
Implementations§
Source§impl<'a, const N: usize, T: Symbol<N>> Decoder<N, T>
impl<'a, const N: usize, T: Symbol<N>> Decoder<N, T>
Sourcepub fn new(local: impl Iterator<Item = T>) -> Self
pub fn new(local: impl Iterator<Item = T>) -> Self
Create a new decoder with a local iterator of items (our set)
Sourcepub fn next_symbol(&mut self, symbol: CodedSymbol<N>) -> (bool, Vec<Peeled<T>>)
pub fn next_symbol(&mut self, symbol: CodedSymbol<N>) -> (bool, Vec<Peeled<T>>)
Consumes a received symbol and tries to peel as many items as possible.
Returns true when done and false if there are more items to peel
Auto Trait Implementations§
impl<const N: usize, T> Freeze for Decoder<N, T>
impl<const N: usize, T> RefUnwindSafe for Decoder<N, T>where
T: RefUnwindSafe,
impl<const N: usize, T> Send for Decoder<N, T>where
T: Send,
impl<const N: usize, T> Sync for Decoder<N, T>where
T: Sync,
impl<const N: usize, T> Unpin for Decoder<N, T>where
T: Unpin,
impl<const N: usize, T> UnsafeUnpin for Decoder<N, T>
impl<const N: usize, T> UnwindSafe for Decoder<N, T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more