pub struct IntMap { /* private fields */ }Implementations§
Source§impl IntMap
impl IntMap
pub fn new( min: i32, max: i32, display_map: Option<&'static dyn Fn(i32) -> String>, ) -> IntMap
pub fn min(&self) -> i32
pub fn max(&self) -> i32
pub fn normalized_to_int(&self, normalized: f32) -> i32
pub fn int_to_normalized(&self, int: i32) -> f32
pub fn clamp_int(&self, int: i32) -> i32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntMap
impl !RefUnwindSafe for IntMap
impl !Send for IntMap
impl !Sync for IntMap
impl Unpin for IntMap
impl !UnwindSafe for IntMap
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