pub struct GeomStats {
pub literal: u32,
pub ref_exact: u32,
pub ref_geom: u32,
pub geom_nontrivial: u32,
pub modes: Vec<u8>,
pub savings: Vec<i64>,
pub refs: Vec<Option<(u32, u8)>>,
}Expand description
Encode statistics (per-tile choices/savings; feeds vis maps).
Fields§
§literal: u32Count of mode-0 literals.
ref_exact: u32Count of mode-1 exact references.
ref_geom: u32Count of mode-2 geometric references.
geom_nontrivial: u32Mode-2 with a nontrivial transform (t≠0).
modes: Vec<u8>Per-tile chosen mode, scan order.
savings: Vec<i64>Per-tile proxy-cost saving vs literal.
refs: Vec<Option<(u32, u8)>>Per-tile (source index, transform).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GeomStats
impl RefUnwindSafe for GeomStats
impl Send for GeomStats
impl Sync for GeomStats
impl Unpin for GeomStats
impl UnsafeUnpin for GeomStats
impl UnwindSafe for GeomStats
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