Enum iron_shapes::repetition::Repetition
source · pub enum Repetition<T>where
T: CoordinateType,{
Regular(RegularRepetition<T>),
Irregular(IrregularRepetition<T>),
}Expand description
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§
source§impl<T> Repetition<T>where
T: CoordinateType,
impl<T> Repetition<T>where T: CoordinateType,
Trait Implementations§
source§impl<T> Clone for Repetition<T>where
T: CoordinateType + Clone,
impl<T> Clone for Repetition<T>where T: CoordinateType + Clone,
source§fn clone(&self) -> Repetition<T>
fn clone(&self) -> Repetition<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T> Debug for Repetition<T>where
T: CoordinateType + Debug,
impl<T> Debug for Repetition<T>where T: CoordinateType + Debug,
source§impl<'de, T> Deserialize<'de> for Repetition<T>where
T: CoordinateType + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Repetition<T>where T: CoordinateType + Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> Hash for Repetition<T>where
T: CoordinateType + Hash,
impl<T> Hash for Repetition<T>where T: CoordinateType + Hash,
source§impl<T> PartialEq<Repetition<T>> for Repetition<T>where
T: CoordinateType + PartialEq,
impl<T> PartialEq<Repetition<T>> for Repetition<T>where T: CoordinateType + PartialEq,
source§fn eq(&self, other: &Repetition<T>) -> bool
fn eq(&self, other: &Repetition<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.