Skip to main content

Raster

Struct Raster 

Source
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§

Source§

impl<'a> Raster<'a>

Source

pub const fn new(pixels: PixelSlice<'a>) -> Self

Retain the caller’s raster borrow; source padding is not copied.

Trait Implementations§

Source§

impl Source for Raster<'_>

Source§

type Error = CodecError

Original source error; retained in the operation’s error chain.
Source§

fn description(&self) -> Description

Fixed declaration. Changing it during read fails before the next encode.
Source§

fn mechanism(&self) -> OutputSource

Acquisition mechanism, not a retained-memory guarantee.
Source§

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>

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

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.
Source§

fn replay_identity(&self) -> Result<Option<[u64; 4]>, Self::Error>

Optional opaque identity/version of this retained source. A stable value is weaker than sample-exact replay. The driver also checks row digests.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.