pub enum StampError {
Show 15 variants
NotAnIdentifier,
PathEmpty,
PathUnbounded {
overflow: Overflow,
},
PatternEmpty,
PatternUnbounded {
overflow: Overflow,
},
SeatNameDoubled {
at: u32,
},
SitesAbsent,
SitesUnbounded {
overflow: Overflow,
},
SiteNameDoubled {
at: u32,
},
ArgumentsUnbounded {
overflow: Overflow,
},
ArgumentsUnmatched {
at: u32,
seats: u32,
supplied: u32,
},
ReachUnseated {
at: u32,
},
SeatNotPlanned {
role_slot: u16,
},
DestinationNotArtifact {
role_slot: u16,
},
TokensUnbounded {
overflow: Overflow,
},
}Expand description
How stamping says no.
One cause per refusal: every road here settles one question, and the road that settles several settles them in a declared order, so exactly one row is true of any refused value.
Variants§
NotAnIdentifier
A spelling cannot stand where its seat needs it: outside the identifier alphabet, or — at a name seat — a keyword the language already took.
PathEmpty
A path names no segment, so it names nothing.
PathUnbounded
A path carries more segments than the declared magnitude.
PatternEmpty
A pattern declares no part, so it declares no shape.
PatternUnbounded
A pattern declares more parts than the declared magnitude.
SeatNameDoubled
Two seats of one pattern carry one name, which binds one metavariable twice.
SitesAbsent
A stamp covers no site, and a definition nobody invokes has no reader.
SitesUnbounded
A stamp covers more sites than the declared magnitude.
SiteNameDoubled
Two sites of one stamp carry one name, which is a manifest row written twice.
ArgumentsUnbounded
One site carries more arguments than the declared magnitude.
ArgumentsUnmatched
One site supplies a different number of arguments than the pattern declares seats.
Fields
ReachUnseated
One site declares a reach the pattern gives no coordinate to, which is a visibility with nowhere to be written rather than a narrower one.
SeatNotPlanned
The plan declares no member under the seat this artifact stands for.
DestinationNotArtifact
The planned member lands somewhere other than a standalone artifact, and a published stamp is bytes at an address the other three deliveries do not name.
TokensUnbounded
A rendered tree outgrows the declared token magnitude, and the artifact refuses whole rather than materializing the sites that happened to fit.
Trait Implementations§
Source§impl Clone for StampError
impl Clone for StampError
Source§fn clone(&self) -> StampError
fn clone(&self) -> StampError
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 StampError
Source§impl Debug for StampError
impl Debug for StampError
Source§impl Display for StampError
impl Display for StampError
impl Eq for StampError
Source§impl Error for StampError
impl Error for StampError
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 From<Overflow> for StampError
Every overflow a rendering road meets is a tree that outgrew the declared token magnitude.
impl From<Overflow> for StampError
Every overflow a rendering road meets is a tree that outgrew the declared token magnitude.
The nonclaim is stated here: this is the only overflow the roads in this home can raise, because the only bounded collection they build is a token group.