Struct seitan::RangedProperty[][src]

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

Implementations

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

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

pub fn from_iter_log_scale<I: Iterator<Item = T> + 'a>(
    iter: I,
    range: Range<R>
) -> RangedProperty<'a, T, R>
[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: Clone + 'a, R: Sub<Output = R> + Clone + 'static> RangedProperty<'a, T, R>[src]

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

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

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

Trait Implementations

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

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

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

impl<'a, T: Clone + Serialize + 'a, R: Clone + Serialize> Serialize for RangedProperty<'a, T, R>[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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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.