[][src]Struct arrayfire::RandomEngine

pub struct RandomEngine { /* fields omitted */ }

Random number generator engine

This is a wrapper for ArrayFire's native random number generator engine.

Methods

impl RandomEngine[src]

pub fn new(rengine: RandomEngineType, seed: Option<u64>) -> Self[src]

Create a new random engine object

Parameters

Return Values

A object of type RandomEngine

pub fn get_type(&self) -> RandomEngineType[src]

Get random engine type

pub fn set_type(&mut self, engine_type: RandomEngineType)[src]

Get random engine type

pub fn set_seed(&mut self, seed: u64)[src]

Set seed for random engine

pub fn get_seed(&self) -> u64[src]

Get seed of the random engine

pub fn get(&self) -> i64[src]

Returns the native FFI handle for Rust object RandomEngine

Trait Implementations

impl From<i64> for RandomEngine[src]

Used for creating RandomEngine object from native resource id

impl Drop for RandomEngine[src]

Free RandomEngine's native resource

impl Clone for RandomEngine[src]

Increment reference count of RandomEngine's native resource

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Unpin for RandomEngine

impl Sync for RandomEngine

impl Send for RandomEngine

impl UnwindSafe for RandomEngine

impl RefUnwindSafe for RandomEngine

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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