Struct constriction::Queue [−][src]
pub struct Queue {}
Expand description
Zero sized marker trait for first-in-first-out read/write Semantics
This type typically only comes up in advanced use cases that are generic over read/write
semantics. If you are looking for an entropy coder that operates as a queue, check out
the module stream::queue
.
Trait Implementations
type AsReadWords = Cursor<Word, &'a [Word]>
type AsReadWords = Cursor<Word, &'a [Word]>
The type of the data source as which the original type can be used.
Performs the (temporary) conversion.
type IntoReadWords = Cursor<Word, Buf>
type IntoReadWords = Cursor<Word, Buf>
The type of the data source that will result from the conversion.
Performs the conversion.
fn decode_symbol<C: DecoderCodebook>(
&mut self,
codebook: C
) -> Result<C::Symbol, CoderError<SymbolCodeError<C::InvalidCodeword>, Self::ReadError>>
fn decode_symbols<'s, I, C>(
&'s mut self,
codebooks: I
) -> DecodeSymbols<'s, Self, I, S>ⓘNotable traits for DecodeSymbols<'a, Stream, I, S>impl<'a, Stream, I, C, S> Iterator for DecodeSymbols<'a, Stream, I, S> where
S: Semantics,
Stream: ReadBitStream<S>,
C: DecoderCodebook,
I: Iterator<Item = C>, type Item = Result<C::Symbol, CoderError<SymbolCodeError<C::InvalidCodeword>, Stream::ReadError>>;
where
I: IntoIterator<Item = C> + 's,
C: DecoderCodebook,
impl<'a, Stream, I, C, S> Iterator for DecodeSymbols<'a, Stream, I, S> where
S: Semantics,
Stream: ReadBitStream<S>,
C: DecoderCodebook,
I: Iterator<Item = C>, type Item = Result<C::Symbol, CoderError<SymbolCodeError<C::InvalidCodeword>, Stream::ReadError>>;
fn decode_iid_symbols<'a, C>(
&'a mut self,
amt: usize,
codebook: &'a C
) -> DecodeSymbols<'a, Self, Take<Repeat<&'a C>>, S>ⓘNotable traits for DecodeSymbols<'a, Stream, I, S>impl<'a, Stream, I, C, S> Iterator for DecodeSymbols<'a, Stream, I, S> where
S: Semantics,
Stream: ReadBitStream<S>,
C: DecoderCodebook,
I: Iterator<Item = C>, type Item = Result<C::Symbol, CoderError<SymbolCodeError<C::InvalidCodeword>, Stream::ReadError>>;
where
C: DecoderCodebook,
impl<'a, Stream, I, C, S> Iterator for DecodeSymbols<'a, Stream, I, S> where
S: Semantics,
Stream: ReadBitStream<S>,
C: DecoderCodebook,
I: Iterator<Item = C>, type Item = Result<C::Symbol, CoderError<SymbolCodeError<C::InvalidCodeword>, Stream::ReadError>>;
The error type that can occur when reading from the data source, or Infallible
. Read more
Reads a single Word
from the data source and advances the state of the data source
accordingly (i.e., so that the next read
won’t read the same Word
again). Read more
Returns true
if the data source could be out of data. Read more
type ReadError = Infallible
type ReadError = Infallible
The error type that can occur when reading from the data source, or Infallible
. Read more
Reads a single Word
from the data source and advances the state of the data source
accordingly (i.e., so that the next read
won’t read the same Word
again). Read more
Returns true
if the data source could be out of data. Read more
type WriteError = B::WriteError
fn encode_symbol<Symbol, C>(
&mut self,
symbol: Symbol,
codebook: C
) -> Result<(), CoderError<DefaultEncoderFrontendError, Self::WriteError>> where
C: EncoderCodebook,
Symbol: Borrow<C::Symbol>,
fn encode_symbols<Symbol, C>(
&mut self,
symbols_and_codebooks: impl IntoIterator<Item = (Symbol, C)>
) -> Result<(), CoderError<DefaultEncoderFrontendError, Self::WriteError>> where
C: EncoderCodebook,
Symbol: Borrow<C::Symbol>,
fn encode_iid_symbols<Symbol, C>(
&mut self,
symbols: impl IntoIterator<Item = Symbol>,
codebook: &C
) -> Result<(), CoderError<DefaultEncoderFrontendError, Self::WriteError>> where
C: EncoderCodebook,
Symbol: Borrow<C::Symbol>,
Auto Trait Implementations
impl RefUnwindSafe for Queue
impl UnwindSafe for Queue
Blanket Implementations
type AsReadWords = Cursor<Word, &'a [Word]>
type AsReadWords = Cursor<Word, &'a [Word]>
The type of the data source as which the original type can be used.
Performs the (temporary) conversion.
type AsReadWords = Cursor<Word, &'a [Word]>
type AsReadWords = Cursor<Word, &'a [Word]>
The type of the data source as which the original type can be used.
Performs the (temporary) conversion.
Mutably borrows from an owned value. Read more
type IntoReadWords = Cursor<Word, Buf>
type IntoReadWords = Cursor<Word, Buf>
The type of the data source that will result from the conversion.
Performs the conversion.
type IntoReadWords = Cursor<Word, Buf>
type IntoReadWords = Cursor<Word, Buf>
The type of the data source that will result from the conversion.
Performs the conversion.