INNER CODE UNIT · Rust
default
lunatic-solutions/lunatic · crates/hash-map-id/src/lib.rs:44
fn default() -> Self {
Self::new()
}
}
impl<T> Debug for HashMapId<T> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("HashMapId")
.field("id_seed", &self.id_seed)
.field("type", &type_name::<T>())
.finish()
}
}
#[cfg(test)]
mod tests {
use super::*;