Struct libreda_db::index::IndexGenerator
source · pub(crate) struct IndexGenerator<T, Int = u32> {
counter: Int,
phantom: PhantomData<T>,
}Expand description
Generator for incrementing Index<T> values.
Fields§
§counter: Int§phantom: PhantomData<T>Implementations§
Trait Implementations§
source§impl<T: Clone, Int: Clone> Clone for IndexGenerator<T, Int>
impl<T: Clone, Int: Clone> Clone for IndexGenerator<T, Int>
source§fn clone(&self) -> IndexGenerator<T, Int>
fn clone(&self) -> IndexGenerator<T, Int>
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<'de, T, Int> Deserialize<'de> for IndexGenerator<T, Int>where
Int: Deserialize<'de>,
impl<'de, T, Int> Deserialize<'de> for IndexGenerator<T, Int>where Int: 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