Struct rin::events::RangedProperty[][src]

pub struct RangedProperty<'a, T, R = T> { /* fields omitted */ }

Implementations

impl<'a, T, R> RangedProperty<'a, T, R> where
    T: 'a + Clone,
    R: Clone
[src]

pub fn from_iter<I>(iter: I, range: Range<R>) -> RangedProperty<'a, T, R> where
    I: 'a + Iterator<Item = T>, 
[src]

pub fn from_iter_log_scale<I>(
    iter: I,
    range: Range<R>
) -> RangedProperty<'a, T, R> where
    I: 'a + Iterator<Item = T>, 
[src]

pub fn new(
    property: Property<'a, T>,
    range: Range<R>
) -> RangedProperty<'a, T, R>
[src]

pub fn new_log_scale(
    property: Property<'a, T>,
    range: Range<R>
) -> RangedProperty<'a, T, R>
[src]

pub fn range(&self) -> Range<R>[src]

pub fn by_ref(&self) -> &RangedProperty<'a, T, R>[src]

pub fn min(&self) -> R[src]

pub fn max(&self) -> R[src]

pub fn get(&self) -> Option<&T>[src]

pub fn iter(&self) -> Iter<'a, T>[src]

impl<'a, T, R> RangedProperty<'a, T, R> where
    T: 'a + Clone,
    R: 'static + Sub<R, Output = R> + Clone
[src]

pub fn diff(&self) -> R[src]

impl<'a, T, R> RangedProperty<'a, T, R> where
    T: Sub<T, Output = T> + Clone + ToPrimitive + FromPrimitive + 'static,
    R: Clone + ToPrimitive + Sub<R, Output = R> + 'static, 
[src]

pub fn pct(&self) -> Option<f64>[src]

Trait Implementations

impl<'a, T, R> Clone for RangedProperty<'a, T, R> where
    T: Clone,
    R: Clone
[src]

impl<'a, T, R> Debug for RangedProperty<'a, T, R> where
    T: Clone + Debug,
    R: Debug
[src]

impl<'a, T, R> PartialEq<RangedProperty<'a, T, R>> for RangedProperty<'a, T, R> where
    T: 'a + PartialEq<T> + Clone,
    R: PartialEq<R> + Clone
[src]

impl<'a, T, R> Serialize for RangedProperty<'a, T, R> where
    T: 'a + Clone + Serialize,
    R: Clone + Serialize
[src]

Auto Trait Implementations

impl<'a, T, R = T> !RefUnwindSafe for RangedProperty<'a, T, R>

impl<'a, T, R = T> !Send for RangedProperty<'a, T, R>

impl<'a, T, R = T> !Sync for RangedProperty<'a, T, R>

impl<'a, T, R> Unpin for RangedProperty<'a, T, R> where
    R: Unpin

impl<'a, T, R = T> !UnwindSafe for RangedProperty<'a, T, R>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]