pub enum DeclarationError {
NamespaceEmpty,
StemEmpty,
NotAnIdentifier,
Absent {
seat: Seat,
},
Doubled {
seat: Seat,
},
Unbounded {
seat: Seat,
bound: u64,
observed: u64,
},
NotACurve {
observed: u64,
},
}Expand description
How the values one descriptor declaration states are not a lawful declaration.
Seven shapes over one seat roster rather than one row per seat: what refuses is the SHAPE of the disagreement, and which seat it was about is the other half of the same sentence.
Variants§
NamespaceEmpty
A namespaced name states no owner.
StemEmpty
A namespaced name states no spelling.
NotAnIdentifier
A spelling written where the rendering needs an item name cannot be one: not one Rust identifier, or a keyword the language already took.
Absent
A seat that admits no emptiness was stated empty.
Doubled
Two of one roster’s members carry one spelling.
Unbounded
A roster states more members than its declared magnitude admits.
Fields
NotACurve
An input-size axis states too few sizes for a growth class to be read off it.
Implementations§
Source§impl DeclarationError
impl DeclarationError
Sourcepub const fn slot(&self) -> u8
pub const fn slot(&self) -> u8
This refusal’s position in its own roster, appended and never renumbered.
Sourcepub const fn classified(&self) -> Observed
pub const fn classified(&self) -> Observed
How what was observed differs from the vocabulary that was expected.
Sourcepub fn canonical_bytes(&self) -> Vec<u8> ⓘ
pub fn canonical_bytes(&self) -> Vec<u8> ⓘ
This refusal’s canonical bytes: its own position, then the members it carries.
Trait Implementations§
Source§impl Clone for DeclarationError
impl Clone for DeclarationError
Source§fn clone(&self) -> DeclarationError
fn clone(&self) -> DeclarationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DeclarationError
Source§impl Debug for DeclarationError
impl Debug for DeclarationError
Source§impl Display for DeclarationError
impl Display for DeclarationError
impl Eq for DeclarationError
Source§impl Error for DeclarationError
impl Error for DeclarationError
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()
Source§impl Hash for DeclarationError
impl Hash for DeclarationError
Source§impl PartialEq for DeclarationError
impl PartialEq for DeclarationError
Source§impl Refused for DeclarationError
impl Refused for DeclarationError
A single cause enumerates nothing: the primary cause is the summary’s own subject, never a member of its related set.