pub struct ClampOptions {
pub min: f64,
pub max: f64,
}Expand description
Options for clamp operation
Fields§
§min: f64min: f64 -> Minimum value
min: -inf, max: inf, default: 0
max: f64max: f64 -> Maximum value
min: -inf, max: inf, default: 1
Trait Implementations§
Source§impl Clone for ClampOptions
impl Clone for ClampOptions
Source§fn clone(&self) -> ClampOptions
fn clone(&self) -> ClampOptions
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 ClampOptions
impl Debug for ClampOptions
Auto Trait Implementations§
impl Freeze for ClampOptions
impl RefUnwindSafe for ClampOptions
impl Send for ClampOptions
impl Sync for ClampOptions
impl Unpin for ClampOptions
impl UnwindSafe for ClampOptions
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