fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> {
        match self {
            Self::ReadFile(ref message, ref cause) => {
                writeln!(formatter, "{}", message)?;
                cause.fmt(formatter)
            }
            Self::Missing(ref msg) => writeln!(formatter, "{}", msg),
            Self::InvalidType(ref msg) => writeln!(formatter, "{}", msg),
        }
    }
/// Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter .
fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> {
        match self {
            Self::ReadFile(ref message, ref cause) => {
                writeln!(formatter, "{}", message)?;
                cause.fmt(formatter)
            }
            Self::Missing(ref msg) => writeln!(formatter, "{}", msg),
            Self::InvalidType(ref msg) => writeln!(formatter, "{}", msg),
        }
    }
fn fmt ( & self , formatter : & mut fmt :: Formatter ) -> Result < ( ) , fmt :: Error > { match self { Self :: ReadFile ( ref message , ref cause ) => { writeln ! ( formatter " " message ) ? ; cause . fmt ( formatter ) } Self :: Missing ( ref msg ) => writeln ! ( formatter " " msg ) , Self :: InvalidType ( ref msg ) => writeln ! ( formatter " " msg ) , } }
Formats the value using the given formatter.
Formats the value using the given formatter .
&self
formatter
&mut fmt::Formatter
&self
formatter
&mut fmt::Formatter