pub struct Payload<'a> { /* private fields */ }Expand description
Bytes read into memory, with the source offset of their first byte.
The image decoders read a payload from memory but address it in source
coordinates, so their errors keep naming source offsets. As a
RangedSource it has the size of its end offset; bytes before its start
are not readable.
Implementations§
Trait Implementations§
impl<'a> Copy for Payload<'a>
Auto Trait Implementations§
impl<'a> Freeze for Payload<'a>
impl<'a> RefUnwindSafe for Payload<'a>
impl<'a> Send for Payload<'a>
impl<'a> Sync for Payload<'a>
impl<'a> Unpin for Payload<'a>
impl<'a> UnsafeUnpin for Payload<'a>
impl<'a> UnwindSafe for Payload<'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