impl crate::Debug for hashbrown::TryReserveError {
fn fmt(&self, f: &mut crate::Formatter) {
match self {
Self::CapacityOverflow => {
f.debug_tuple("CapacityOverflow").finish();
}
Self::AllocError { layout } => f
.debug_struct("AllocError")
.field("layout", layout)
.finish(),
}
}
}
impl<'a, K, V, S> crate::Debug for hashbrown::hash_map::OccupiedError<'a, K, V, S>
where
hashbrown::hash_map::OccupiedEntry<'a, K, V, S>: crate::Debug,
V: crate::Debug,
{
fn fmt(&self, f: &mut crate::Formatter) {
f.debug_struct("OccupiedError")
.field("entry", &self.entry)
.field("value", &self.value)
.finish()
}
}
impl<'a, K, V, S> crate::Debug for hashbrown::hash_map::RawEntryMut<'a, K, V, S>
where
hashbrown::hash_map::RawOccupiedEntryMut<'a, K, V, S>: crate::Debug,
hashbrown::hash_map::RawVacantEntryMut<'a, K, V, S>: crate::Debug,
{
fn fmt(&self, f: &mut crate::Formatter) {
match self {
Self::Occupied(__0) => {
f.debug_tuple("Occupied").field(__0).finish();
}
Self::Vacant(__0) => {
f.debug_tuple("Vacant").field(__0).finish();
}
}
}
}
impl<'a, T, S> crate::Debug for hashbrown::hash_set::Entry<'a, T, S>
where
hashbrown::hash_set::OccupiedEntry<'a, T, S>: crate::Debug,
hashbrown::hash_set::VacantEntry<'a, T, S>: crate::Debug,
{
fn fmt(&self, f: &mut crate::Formatter) {
match self {
Self::Occupied(__0) => {
f.debug_tuple("Occupied").field(__0).finish();
}
Self::Vacant(__0) => {
f.debug_tuple("Vacant").field(__0).finish();
}
}
}
}