pub struct StyleConfig {
pub name: String,
pub colormap: Option<String>,
pub value_range: Option<(f64, f64)>,
pub alpha: f32,
pub gamma: f32,
pub brightness: f32,
pub contrast: f32,
}Expand description
Style configuration for rendering
Fields§
§name: StringStyle name
colormap: Option<String>Colormap name (e.g., “viridis”, “terrain”)
value_range: Option<(f64, f64)>Value range for colormap
alpha: f32Alpha/transparency value (0.0-1.0)
gamma: f32Gamma correction
brightness: f32Brightness adjustment (-1.0 to 1.0)
contrast: f32Contrast adjustment (0.0 to 2.0)
Trait Implementations§
Source§impl Clone for StyleConfig
impl Clone for StyleConfig
Source§fn clone(&self) -> StyleConfig
fn clone(&self) -> StyleConfig
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 StyleConfig
impl Debug for StyleConfig
Source§impl<'de> Deserialize<'de> for StyleConfig
impl<'de> Deserialize<'de> for StyleConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StyleConfig
impl RefUnwindSafe for StyleConfig
impl Send for StyleConfig
impl Sync for StyleConfig
impl Unpin for StyleConfig
impl UnsafeUnpin for StyleConfig
impl UnwindSafe for StyleConfig
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