Enum libreda_db::layout::prelude::Repetition
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§
§impl<T> Repetition<T>where
T: CoordinateType,
impl<T> Repetition<T>where T: CoordinateType,
Trait Implementations§
§impl<T> Clone for Repetition<T>where
T: Clone + CoordinateType,
impl<T> Clone for Repetition<T>where T: Clone + CoordinateType,
§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 more§impl<T> Debug for Repetition<T>where
T: Debug + CoordinateType,
impl<T> Debug for Repetition<T>where T: Debug + CoordinateType,
§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>,
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Repetition<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Repetition<T>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<T> Hash for Repetition<T>where
T: Hash + CoordinateType,
impl<T> Hash for Repetition<T>where T: Hash + CoordinateType,
§impl<T> PartialEq<Repetition<T>> for Repetition<T>where
T: PartialEq<T> + CoordinateType,
impl<T> PartialEq<Repetition<T>> for Repetition<T>where T: PartialEq<T> + CoordinateType,
§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 ==.§impl<T> Serialize for Repetition<T>where
T: CoordinateType + Serialize,
impl<T> Serialize for Repetition<T>where T: CoordinateType + Serialize,
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more