Trait constriction::PosSeek[][src]

pub trait PosSeek {
    type Position: Clone;
}
Expand description

Trait for coders or backends that might implement Pos and/or Seek

If a type implements PosSeek then that doesn’t necessarily mean that it also implements Pos or Seek. Implementing PosSeek only fixes the common Position type that is used if the type implements Pos and/or Seek.

Associated Types

Implementations on Foreign Types

impl<Word> PosSeek for Vec<Word>[src]

impl<Array> PosSeek for SmallVec<Array> where
    Array: Array
[src]

Implementors

impl<B: PosSeek> PosSeek for Reverse<B>[src]

type Position = B::Position

impl<Word, Buf> PosSeek for Cursor<Word, Buf>[src]

impl<Word, State, Backend> PosSeek for RangeDecoder<Word, State, Backend> where
    Word: BitArray,
    State: BitArray,
    Backend: ReadWords<Word, Queue>,
    Backend: PosSeek,
    Self: Code
[src]

type Position = (Backend::Position, Self::State)

impl<Word, State, Backend> PosSeek for RangeEncoder<Word, State, Backend> where
    Word: BitArray,
    State: BitArray,
    Backend: WriteWords<Word> + PosSeek,
    Self: Code
[src]

type Position = (Backend::Position, Self::State)

impl<Word, State, Backend> PosSeek for AnsCoder<Word, State, Backend> where
    Word: BitArray + Into<State>,
    State: BitArray + AsPrimitive<Word>,
    Backend: PosSeek,
    Self: Code
[src]

type Position = (Backend::Position, Self::State)

impl<Word, State, CompressedBackend, RemainingBackend, const PRECISION: usize> PosSeek for ChainCoder<Word, State, CompressedBackend, RemainingBackend, PRECISION> where
    Word: BitArray + Into<State>,
    State: BitArray + AsPrimitive<Word>,
    CompressedBackend: PosSeek,
    RemainingBackend: PosSeek
[src]

type Position = (BackendPosition<CompressedBackend::Position, RemainingBackend::Position>, ChainCoderHeads<Word, State, PRECISION>)