//! Error converting a [`Parsed`](crate::parsing::Parsed) struct to another type
use core::fmt;
usecrate::error;
/// An error that occurred when converting a [`Parsed`](crate::parsing::Parsed) to another type. #[non_exhaustive] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pubenum TryFromParsed { /// The [`Parsed`](crate::parsing::Parsed) did not include enough information to construct the /// type.
InsufficientInformation, /// Some component contained an invalid value for the type.
ComponentRange(error::ComponentRange),
}
impl fmt::Display for TryFromParsed { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { matchself { Self::InsufficientInformation => f.write_str( "the `Parsed` struct did not include enough information to construct the type",
), Self::ComponentRange(err) => err.fmt(f),
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.