pub struct Raster<'a>(/* private fields */);Expand description
Borrow a complete raster through the same row-source interface. An attached exact-depth claim is preserved and verified before each push. Unsupported claimed layouts refuse before startup; this is stricter than using an otherwise identical unclaimed view.
Implementations§
Trait Implementations§
Source§impl Source for Raster<'_>
impl Source for Raster<'_>
Source§type Error = CodecError
type Error = CodecError
Original source error; retained in the operation’s error chain.
Source§fn description(&self) -> Description
fn description(&self) -> Description
Fixed declaration. Changing it during read fails before the next encode.
Source§fn mechanism(&self) -> OutputSource
fn mechanism(&self) -> OutputSource
Acquisition mechanism, not a retained-memory guarantee.
Source§fn borrowed_pixels(&self) -> Option<PixelSlice<'_>>
fn borrowed_pixels(&self) -> Option<PixelSlice<'_>>
Return a real immutable raster view retained for the entire operation.
The default supplies no borrow. The driver uses this returned storage,
never
mechanism() or a capability flag, as exact replay evidence.Source§fn read_rows(
&mut self,
first: u32,
rows: PixelSliceMut<'_>,
pulse: Option<&dyn Pulse>,
) -> Result<(), Self::Error>
fn read_rows( &mut self, first: u32, rows: PixelSliceMut<'_>, pulse: Option<&dyn Pulse>, ) -> Result<(), Self::Error>
Fill every active sample of the requested consecutive rows, honoring
destination stride. No reading beyond the declared image is requested.
A late interpretation change must fail, never relabel earlier samples.
None adds no per-call control; any control retained by the source
remains active.Source§fn supports_positional_replay(&self) -> bool
fn supports_positional_replay(&self) -> bool
Whether ordered traversals can restart at row zero without reconstructing
this source. Defaults to forward-only. This proves no sample identity;
positional replay is checked with per-row digests and optional identity.
Auto Trait Implementations§
impl<'a> Freeze for Raster<'a>
impl<'a> RefUnwindSafe for Raster<'a>
impl<'a> Send for Raster<'a>
impl<'a> Sync for Raster<'a>
impl<'a> Unpin for Raster<'a>
impl<'a> UnsafeUnpin for Raster<'a>
impl<'a> UnwindSafe for Raster<'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