pub struct SliceSource<'a, Unit> { /* private fields */ }Expand description
A simple slice-based source that reads units from a &[Unit].
Equivalent to the C++ span<const unit_t> based source used by
RansDecoder and RansDecoderStreamImpl.
Implementations§
Trait Implementations§
Source§impl<'a, Unit> Clone for SliceSource<'a, Unit>where
Unit: Clone,
impl<'a, Unit> Clone for SliceSource<'a, Unit>where
Unit: Clone,
Source§fn clone(&self) -> SliceSource<'a, Unit>
fn clone(&self) -> SliceSource<'a, Unit>
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 moreSource§impl<'a, Unit> Debug for SliceSource<'a, Unit>where
Unit: Debug,
impl<'a, Unit> Debug for SliceSource<'a, Unit>where
Unit: Debug,
Source§impl<'a, Unit> Source<Unit> for SliceSource<'a, Unit>where
Unit: Copy,
impl<'a, Unit> Source<Unit> for SliceSource<'a, Unit>where
Unit: Copy,
Auto Trait Implementations§
impl<'a, Unit> Freeze for SliceSource<'a, Unit>
impl<'a, Unit> RefUnwindSafe for SliceSource<'a, Unit>where
Unit: RefUnwindSafe,
impl<'a, Unit> Send for SliceSource<'a, Unit>where
Unit: Sync,
impl<'a, Unit> Sync for SliceSource<'a, Unit>where
Unit: Sync,
impl<'a, Unit> Unpin for SliceSource<'a, Unit>
impl<'a, Unit> UnsafeUnpin for SliceSource<'a, Unit>
impl<'a, Unit> UnwindSafe for SliceSource<'a, Unit>where
Unit: RefUnwindSafe,
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