pub struct StepImagePlan {
pub n_tiles: usize,
pub newline_mask: Vec<bool>,
}Expand description
Tiling plan for an image of (w, h): tile count, tiles per row (x_num), and the per-tile newline mask (vendor law: a newline after each full tile row, except a trailing one on the final tile). Derivable from HEADER dims alone, so the pad run and the request’s token price are known before any canvas expands.
Fields§
§n_tiles: usize§newline_mask: Vec<bool>Implementations§
Source§impl StepImagePlan
impl StepImagePlan
Auto Trait Implementations§
impl Freeze for StepImagePlan
impl RefUnwindSafe for StepImagePlan
impl Send for StepImagePlan
impl Sync for StepImagePlan
impl Unpin for StepImagePlan
impl UnsafeUnpin for StepImagePlan
impl UnwindSafe for StepImagePlan
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