[−][src]Struct scales::prelude::BrokenScale
Implementations
impl<N> BrokenScale<N> where
N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone,
[src]
N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone,
Trait Implementations
impl<N: Clone> Clone for BrokenScale<N> where
N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone,
[src]
N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone,
pub fn clone(&self) -> BrokenScale<N>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N: Debug> Debug for BrokenScale<N> where
N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone,
[src]
N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone,
impl<N: PartialEq> PartialEq<BrokenScale<N>> for BrokenScale<N> where
N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone,
[src]
N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone,
pub fn eq(&self, other: &BrokenScale<N>) -> bool
[src]
pub fn ne(&self, other: &BrokenScale<N>) -> bool
[src]
impl<N> Scale<N> for BrokenScale<N> where
N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone,
[src]
N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone,
pub fn to_relative(&self, absolute: N) -> f64
[src]
pub fn to_absolute(&self, relative: f64) -> N
[src]
pub fn max(&self) -> N
[src]
pub fn min(&self) -> N
[src]
pub fn to_clamped_relative(&self, absolute: N) -> f64
[src]
pub fn to_clamped_absolute(&self, relative: f64) -> N
[src]
pub fn to_relative_delta(&self, absolute_delta: N, relative_pos: f64) -> f64
[src]
pub fn to_absolute_delta(&self, relative_delta: f64, absolute_pos: N) -> N
[src]
impl<N> StructuralPartialEq for BrokenScale<N> where
N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone,
[src]
N: Sub<Output = N> + Add<Output = N> + PartialOrd + FromFloat<f64> + ToFloat<f64> + Clone,
Auto Trait Implementations
impl<N> RefUnwindSafe for BrokenScale<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for BrokenScale<N> where
N: Send,
N: Send,
impl<N> Sync for BrokenScale<N> where
N: Sync,
N: Sync,
impl<N> Unpin for BrokenScale<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for BrokenScale<N> where
N: UnwindSafe,
N: UnwindSafe,
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> 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>,