Struct libreda_db::index::Index
source · pub struct Index<T, Int = u32> {
index: Int,
phantom: PhantomData<T>,
}Expand description
An identifier for an arbitrary type T.
This is a wrapper around usize which is bound to a type T.
Fields§
§index: Int§phantom: PhantomData<T>Implementations§
Trait Implementations§
source§impl<'de, T, Int> Deserialize<'de> for Index<T, Int>where
Int: Deserialize<'de>,
impl<'de, T, Int> Deserialize<'de> for Index<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
source§impl<T, Int: PartialOrd + Ord> Ord for Index<T, Int>
impl<T, Int: PartialOrd + Ord> Ord for Index<T, Int>
source§impl<T, Int: PartialEq> PartialEq<Index<T, Int>> for Index<T, Int>
impl<T, Int: PartialEq> PartialEq<Index<T, Int>> for Index<T, Int>
source§impl<T, Int: PartialOrd> PartialOrd<Index<T, Int>> for Index<T, Int>
impl<T, Int: PartialOrd> PartialOrd<Index<T, Int>> for Index<T, Int>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more