[−][src]Struct solstice::ClampedF32
An non-NAN f32 value clamped between 0.0 and 1.0, inclusive. This type can be constructed with an f32 which will be clamped into the appropriate range.
Trait Implementations
impl Clone for ClampedF32
[src]
fn clone(&self) -> ClampedF32
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ClampedF32
[src]
impl Debug for ClampedF32
[src]
impl Default for ClampedF32
[src]
fn default() -> ClampedF32
[src]
impl Deref for ClampedF32
[src]
impl Eq for ClampedF32
[src]
impl From<f32> for ClampedF32
[src]
impl Ord for ClampedF32
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ClampedF32> for ClampedF32
[src]
fn eq(&self, other: &ClampedF32) -> bool
[src]
fn ne(&self, other: &ClampedF32) -> bool
[src]
impl PartialOrd<ClampedF32> for ClampedF32
[src]
fn partial_cmp(&self, other: &ClampedF32) -> Option<Ordering>
[src]
fn lt(&self, other: &ClampedF32) -> bool
[src]
fn le(&self, other: &ClampedF32) -> bool
[src]
fn gt(&self, other: &ClampedF32) -> bool
[src]
fn ge(&self, other: &ClampedF32) -> bool
[src]
impl StructuralPartialEq for ClampedF32
[src]
Auto Trait Implementations
impl RefUnwindSafe for ClampedF32
impl Send for ClampedF32
impl Sync for ClampedF32
impl Unpin for ClampedF32
impl UnwindSafe for ClampedF32
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,