standard_lib/collections/hash/map/
error.rs

1use std::error::Error;
2use std::fmt::{self, Display, Formatter};
3
4#[derive(#[automatically_derived]
impl ::core::fmt::Debug for IndexNoCap {
    #[inline]
    fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
        ::core::fmt::Formatter::write_str(f, "IndexNoCap")
    }
}Debug)]
5pub struct IndexNoCap;
6
7impl Display for IndexNoCap {
8    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
9        f.write_fmt(format_args!("Unable to calculate indicies for hash-based collection with capacity 0!"))write!(f, "Unable to calculate indicies for hash-based collection with capacity 0!")
10    }
11}
12
13impl Error for IndexNoCap {}