Enum libreda_db::prelude::Repetition[][src]

pub enum Repetition<T> where
    T: CoordinateType
{ Regular(RegularRepetition<T>), Irregular(IrregularRepetition<T>), }

Describe the regular or irregular repetition of a geometrical object.

Variants

Regular(RegularRepetition<T>)

Lattice based repetition.

Irregular(IrregularRepetition<T>)

Repetition with random offsets.

Implementations

impl<T> Repetition<T> where
    T: CoordinateType
[src]

pub fn len(&self) -> usize[src]

Return the number of offsets in this repetition.

pub fn iter(&self) -> Box<dyn Iterator<Item = Vector<T>>, Global>[src]

Iterate over each offsets of this repetition.

Trait Implementations

impl<T> Clone for Repetition<T> where
    T: Clone + CoordinateType
[src]

impl<T> Debug for Repetition<T> where
    T: Debug + CoordinateType
[src]

impl<T> Eq for Repetition<T> where
    T: Eq + CoordinateType
[src]

impl<T> Hash for Repetition<T> where
    T: Hash + CoordinateType
[src]

impl<T> PartialEq<Repetition<T>> for Repetition<T> where
    T: PartialEq<T> + CoordinateType
[src]

impl<T> StructuralEq for Repetition<T> where
    T: CoordinateType
[src]

impl<T> StructuralPartialEq for Repetition<T> where
    T: CoordinateType
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Repetition<T> where
    T: RefUnwindSafe

impl<T> Send for Repetition<T> where
    T: Send

impl<T> Sync for Repetition<T> where
    T: Sync

impl<T> Unpin for Repetition<T> where
    T: Unpin

impl<T> UnwindSafe for Repetition<T> where
    T: UnwindSafe

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> TextType for T where
    T: Clone + Eq + Debug + Hash
[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.