Struct libreda_db::slab_alloc::SlabIndex
source · pub struct SlabIndex<IndexType, IdType> {
index: IndexType,
id: IdType,
}Expand description
Key into an SlabAlloc.
Fields§
§index: IndexTypePointer into the data array.
id: IdTypeA monotonically increasing ID which makes sure that the same index is not repeated.
Implementations§
Trait Implementations§
source§impl<'de, IndexType, IdType> Deserialize<'de> for SlabIndex<IndexType, IdType>where
IndexType: Deserialize<'de>,
IdType: Deserialize<'de>,
impl<'de, IndexType, IdType> Deserialize<'de> for SlabIndex<IndexType, IdType>where IndexType: Deserialize<'de>, IdType: 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