pub struct CompileConfig {
pub max_levels: usize,
pub coarse_step_deg: f32,
pub min_step_deg: f32,
pub fill_value: u8,
pub precompute_coarsest: bool,
}Expand description
Configuration for compiling template assets with rotation support.
Fields§
§max_levels: usizeMaximum pyramid levels to build.
coarse_step_deg: f32Coarse rotation step in degrees at level 0.
min_step_deg: f32Minimum rotation step in degrees across levels.
fill_value: u8Fill value used for out-of-bounds rotations.
precompute_coarsest: boolPrecompute all rotations for the coarsest level.
Implementations§
Source§impl CompileConfig
impl CompileConfig
Sourcepub fn validate(&self) -> CorrMatchResult<()>
pub fn validate(&self) -> CorrMatchResult<()>
Validates the configuration, returning an error if any parameter is invalid.
Trait Implementations§
Source§impl Clone for CompileConfig
impl Clone for CompileConfig
Source§fn clone(&self) -> CompileConfig
fn clone(&self) -> CompileConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompileConfig
impl Debug for CompileConfig
Auto Trait Implementations§
impl Freeze for CompileConfig
impl RefUnwindSafe for CompileConfig
impl Send for CompileConfig
impl Sync for CompileConfig
impl Unpin for CompileConfig
impl UnwindSafe for CompileConfig
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