Struct libreda_db::prelude::IrregularRepetition
pub struct IrregularRepetition<T>where
T: CoordinateType,{
offsets: Vec<Vector<T>, Global>,
}Expand description
Describe a non-equispaced repetition by storing a list of offsets.
Fields§
§offsets: Vec<Vector<T>, Global>Implementations§
§impl<T> IrregularRepetition<T>where
T: CoordinateType,
impl<T> IrregularRepetition<T>where T: CoordinateType,
pub fn new(offsets: Vec<Vector<T>, Global>) -> IrregularRepetition<T>
pub fn new(offsets: Vec<Vector<T>, Global>) -> IrregularRepetition<T>
Create a new irregular repetition from a list of offsets.
Trait Implementations§
§impl<T> Clone for IrregularRepetition<T>where
T: Clone + CoordinateType,
impl<T> Clone for IrregularRepetition<T>where T: Clone + CoordinateType,
§fn clone(&self) -> IrregularRepetition<T>
fn clone(&self) -> IrregularRepetition<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 IrregularRepetition<T>where
T: Debug + CoordinateType,
impl<T> Debug for IrregularRepetition<T>where T: Debug + CoordinateType,
§impl<'de, T> Deserialize<'de> for IrregularRepetition<T>where
T: CoordinateType + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for IrregularRepetition<T>where T: CoordinateType + Deserialize<'de>,
§fn deserialize<__D>(
__deserializer: __D
) -> Result<IrregularRepetition<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<IrregularRepetition<T>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<T> Hash for IrregularRepetition<T>where
T: Hash + CoordinateType,
impl<T> Hash for IrregularRepetition<T>where T: Hash + CoordinateType,
§impl<T> PartialEq<IrregularRepetition<T>> for IrregularRepetition<T>where
T: PartialEq<T> + CoordinateType,
impl<T> PartialEq<IrregularRepetition<T>> for IrregularRepetition<T>where T: PartialEq<T> + CoordinateType,
§fn eq(&self, other: &IrregularRepetition<T>) -> bool
fn eq(&self, other: &IrregularRepetition<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.§impl<T> Serialize for IrregularRepetition<T>where
T: CoordinateType + Serialize,
impl<T> Serialize for IrregularRepetition<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