#[non_exhaustive]pub struct ParseDynamicRangeError;Expand description
The error DynamicRange’s FromStr returns at the
no-alloc tier.
Since 0.5.0 this is no longer FromStr::Err at the alloc / std
tier. There the vocabulary is open and the parse is total, so the
associated type is Infallible and the
signature says what the behaviour always was. The type itself is
unchanged and still exported: the lean build returns it, and code that
names it keeps compiling.
Opaque and sealed: the input is deliberately not retained (this type is
reachable only at the no-alloc tier, where there is nowhere to put an
owned copy, and the input is attacker-controlled on the deserialization
path). #[non_exhaustive] keeps it constructible only here, so it can
grow structure later without breaking callers.
Trait Implementations§
Source§impl Clone for ParseDynamicRangeError
impl Clone for ParseDynamicRangeError
impl Copy for ParseDynamicRangeError
Source§impl Debug for ParseDynamicRangeError
impl Debug for ParseDynamicRangeError
Source§impl Display for ParseDynamicRangeError
impl Display for ParseDynamicRangeError
impl Eq for ParseDynamicRangeError
Source§impl Error for ParseDynamicRangeError
impl Error for ParseDynamicRangeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()