pub struct ContourConfig {
pub interval: f64,
pub base: f64,
pub min_value: Option<f64>,
pub max_value: Option<f64>,
}Expand description
Configuration for contour generation.
Fields§
§interval: f64Spacing between contour lines. Must be positive and finite.
base: f64Base elevation for contour alignment. Contour levels are generated at
multiples of interval starting from base. Default: 0.0.
min_value: Option<f64>Optional minimum elevation filter. Contours below this are discarded.
max_value: Option<f64>Optional maximum elevation filter. Contours above this are discarded.
Implementations§
Trait Implementations§
Source§impl Clone for ContourConfig
impl Clone for ContourConfig
Source§fn clone(&self) -> ContourConfig
fn clone(&self) -> ContourConfig
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 ContourConfig
impl RefUnwindSafe for ContourConfig
impl Send for ContourConfig
impl Sync for ContourConfig
impl Unpin for ContourConfig
impl UnsafeUnpin for ContourConfig
impl UnwindSafe for ContourConfig
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