Struct spaces::discrete::Naturals[][src]

pub struct Naturals;

The set of all natural numbers.

Trait Implementations

impl Debug for Naturals
[src]

Formats the value using the given formatter. Read more

impl Clone for Naturals
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Naturals
[src]

impl Space for Naturals
[src]

The data representation of the space.

Return the number of dimensions in the space.

Return the number of elements in the set composing the space.

Generate a random sample from the space.

impl BoundedSpace for Naturals
[src]

The upper/lower bound type; not necessarily equal to Space::Value.

Returns the value of the dimension's infimum.

Returns the value of the dimension's supremum.

Returns true iff val is within the dimension's bounds.

Auto Trait Implementations

impl Send for Naturals

impl Sync for Naturals