Struct tuix::GenericMap [−]
pub struct GenericMap { /* fields omitted */ }
Implementations
impl GenericMap
impl GenericMap
pub fn new(
min: f32,
max: f32,
value_scaling: ValueScaling,
display_decimals: DisplayDecimals,
units: Option<String>
) -> GenericMap
pub fn value_scaling(&self) -> &ValueScaling
pub fn normalized_to_value(&self, normalized: f32) -> f32
pub fn value_to_normalized(&self, value: f32) -> f32
pub fn clamp_value(&self, value: f32) -> f32
Trait Implementations
impl Clone for GenericMap
impl Clone for GenericMap
pub fn clone(&self) -> GenericMap
pub fn clone(&self) -> GenericMap
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for GenericMap
impl Debug for GenericMap
impl NormalizedMap for GenericMap
impl NormalizedMap for GenericMap
Auto Trait Implementations
impl RefUnwindSafe for GenericMap
impl Send for GenericMap
impl Sync for GenericMap
impl Unpin for GenericMap
impl UnwindSafe for GenericMap
Blanket Implementations
Mutably borrows from an owned value. Read more