Struct mutils::Random[][src]

pub struct Random { /* fields omitted */ }

Implementations

impl Random[src]

pub fn new(min: f32, max: f32) -> Self[src]

pub fn random(&self) -> f32[src]

Trait Implementations

impl Add<Line<f32>> for Random[src]

type Output = Line

The resulting type after applying the + operator.

impl Add<Point<f32>> for Random[src]

type Output = Point

The resulting type after applying the + operator.

impl Add<Random> for Line[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<f32> for Random[src]

type Output = f32

The resulting type after applying the + operator.

impl Clone for Random[src]

impl Copy for Random[src]

impl Sub<Line<f32>> for Random[src]

type Output = Line

The resulting type after applying the - operator.

impl Sub<Point<f32>> for Random[src]

type Output = Point

The resulting type after applying the - operator.

impl Sub<f32> for Random[src]

type Output = f32

The resulting type after applying the - operator.

Auto Trait Implementations

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