Struct pbrt::core::rng::Rng[][src]

pub struct Rng { /* fields omitted */ }

Random number generator


impl Rng[src]

pub fn new() -> Self[src]

pub fn set_sequence(&mut self, initseq: u64)[src]

pub fn uniform_uint32(&mut self) -> u32[src]

pub fn uniform_uint32_bounded(&mut self, b: u32) -> u32[src]

pub fn uniform_float(&mut self) -> Float[src]

Trait Implementations

impl Clone for Rng[src]

impl Copy for Rng[src]

impl Debug for Rng[src]

impl Default for Rng[src]

Auto Trait Implementations

impl RefUnwindSafe for Rng[src]

impl Send for Rng[src]

impl Sync for Rng[src]

impl Unpin for Rng[src]

impl UnwindSafe for Rng[src]

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.