pub enum Decoded {
Written,
Input(Range<usize>),
}Expand description
Where a codec put a block’s output (BlockCodec::decode).
Variants§
Written
In out: what the codec wrote into the block’s segment.
Input(Range<usize>)
In the input: the output is input[range], a zero-copy slice of the
stored bytes (the stored codec), with nothing written into out. A
range, not Bytes, so a codec cannot hand back a buffer of its own.
Trait Implementations§
impl Eq for Decoded
impl StructuralPartialEq for Decoded
Auto Trait Implementations§
impl Forget for Decoded
impl Freeze for Decoded
impl Move for Decoded
impl RefUnwindSafe for Decoded
impl Send for Decoded
impl Sync for Decoded
impl Unpin for Decoded
impl UnsafeUnpin for Decoded
impl UnwindSafe for Decoded
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