pub struct CompiledProgram {
pub ops: Vec<OpCode>,
pub constants: Vec<f64>,
pub required_bands: usize,
pub cache_slot_count: usize,
pub estimated_stack_depth: usize,
}Expand description
A compiled band-math program, ready for repeated per-pixel execution.
Fields§
§ops: Vec<OpCode>The flat opcode stream.
constants: Vec<f64>Constant literals referenced by LoadConst instructions.
required_bands: usizeNumber of input bands the program requires (0-based upper bound
derived from the highest Band(b) seen; 0 means no bands used).
cache_slot_count: usizeNumber of CSE cache slots required.
estimated_stack_depth: usizeStatically estimated maximum stack depth needed.
Trait Implementations§
Source§impl Clone for CompiledProgram
impl Clone for CompiledProgram
Source§fn clone(&self) -> CompiledProgram
fn clone(&self) -> CompiledProgram
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompiledProgram
impl RefUnwindSafe for CompiledProgram
impl Send for CompiledProgram
impl Sync for CompiledProgram
impl Unpin for CompiledProgram
impl UnsafeUnpin for CompiledProgram
impl UnwindSafe for CompiledProgram
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