Trait spaces::Space

source ·
pub trait Space {
    type Value: Debug + Clone;

    fn dim(&self) -> usize;
    fn card(&self) -> Card;
}
Expand description

Trait for defining geometric spaces.

Required Associated Types§

The data representation of the space.

Required Methods§

Return the dimensionality of the space.

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

Implementations on Foreign Types§

Implementors§