[][src]Struct arctk::tools::range::Range

pub struct Range { /* fields omitted */ }

One-dimensional inclusive Range.

Implementations

impl Range[src]

#[must_use]pub const fn min(&self) -> f64[src]

#[must_use]pub const fn max(&self) -> f64[src]

#[must_use]pub fn new(min: f64, max: f64) -> Self[src]

Construct a new Range.

#[must_use]pub const fn new_infinite() -> Self[src]

Construct an infinite Range.

#[must_use]pub fn width(&self) -> f64[src]

Calculate the width of the Range.

#[must_use]pub fn contains(&self, x: f64) -> bool[src]

Determine if a value is contained within the Range.

#[must_use]pub fn intersect(&self, other: &Self) -> bool[src]

Determine if the Range intersects with another given Range.

#[must_use]pub fn overlap(&self, other: &Self) -> Option<Self>[src]

From a range of overlapping values.

Trait Implementations

impl Clone for Range[src]

impl Debug for Range[src]

impl<'de> Deserialize<'de> for Range[src]

impl Display for Range[src]

impl Load for Range[src]

impl PartialEq<Range> for Range[src]

impl StructuralPartialEq for Range[src]

Auto Trait Implementations

impl RefUnwindSafe for Range

impl Send for Range

impl Sync for Range

impl Unpin for Range

impl UnwindSafe for Range

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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

impl<T> Background for T[src]

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

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

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Foreground for T[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

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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

type Owned = T

The resulting type after obtaining ownership.

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

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>,