pub enum IndexStream<'a> {
U8(&'a [u8]),
U16(&'a [u16]),
}Expand description
A stored code stream, read as the index stream it already is.
The two widths a borrowed stream can be. The tabulated gather is
monomorphic in the code word — one dispatch at the traversal’s boundary,
never a per-code branch — so the stream names its width in the type
rather than asking the gather to discover it. Both variants make the same
claim: index_of(c) == (c as usize) & (CODE_SPACE - 1) for every c,
which CK-09 asserts of any codec that answers Some.
Variants§
U8(&'a [u8])
A byte stream at a code space no wider than 256.
U16(&'a [u16])
A two-byte stream, the original width.
Trait Implementations§
Source§impl<'a> Clone for IndexStream<'a>
impl<'a> Clone for IndexStream<'a>
Source§fn clone(&self) -> IndexStream<'a>
fn clone(&self) -> IndexStream<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for IndexStream<'a>
Source§impl<'a> Debug for IndexStream<'a>
impl<'a> Debug for IndexStream<'a>
impl<'a> Eq for IndexStream<'a>
Source§impl<'a> PartialEq for IndexStream<'a>
impl<'a> PartialEq for IndexStream<'a>
impl<'a> StructuralPartialEq for IndexStream<'a>
Auto Trait Implementations§
impl<'a> Freeze for IndexStream<'a>
impl<'a> RefUnwindSafe for IndexStream<'a>
impl<'a> Send for IndexStream<'a>
impl<'a> Sync for IndexStream<'a>
impl<'a> Unpin for IndexStream<'a>
impl<'a> UnsafeUnpin for IndexStream<'a>
impl<'a> UnwindSafe for IndexStream<'a>
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