pub enum ResolutionReportError {
Show 30 variants
ForeignUnitHandle,
ForeignDefinitionHandle,
ForeignReferenceHandle,
UnitCapacityExceeded {
limit: u32,
},
DefinitionCapacityExceeded {
limit: u32,
},
ReferenceCapacityExceeded {
limit: u32,
},
ResolutionCapacityExceeded {
limit: u32,
},
DuplicateResolution {
reference: u32,
},
UnknownUnit {
unit: u32,
},
UnknownDefinition {
definition: u32,
},
UnknownReference {
reference: u32,
},
NonDenseId {
collection: ReportCollection,
position: u32,
id: u32,
},
UnsortedEntries {
collection: ReportCollection,
position: u32,
},
DuplicateUnitKey {
key: Box<str>,
},
UnitLanguageMismatch {
collection: ReportCollection,
position: u32,
unit: u32,
claimed: Language,
unit_language: Language,
},
ForeignParentDefinition {
definition: u32,
parent: u32,
},
ForeignEnclosingDefinition {
reference: u32,
enclosing: u32,
},
DefinitionParentCycle {
definition: u32,
},
MissingResolution {
reference: u32,
},
DuplicateCandidate {
reference: u32,
definition: u32,
},
UnsortedCandidates {
reference: u32,
position: u32,
},
DuplicateGap {
reference: u32,
gap: ResolutionGap,
},
UnsortedGaps {
reference: u32,
position: u32,
},
MixedCandidateCertainty {
reference: u32,
},
ResolvedCandidateCount {
reference: u32,
candidates: u32,
},
ResolvedWithGaps {
reference: u32,
},
EmptyResolution {
reference: u32,
},
InvalidSourcePath {
path: Box<str>,
},
ReversedSiteSpan {
path: Box<str>,
},
EmptySiteSpan {
path: Box<str>,
},
}Expand description
A rejected resolution report, or a rejected write into one.
Variants§
ForeignUnitHandle
A unit handle another builder issued.
ForeignDefinitionHandle
A definition handle another builder issued.
ForeignReferenceHandle
A reference handle another builder issued.
UnitCapacityExceeded
The configured or fixed-width unit capacity is reached.
DefinitionCapacityExceeded
The configured or fixed-width definition capacity is reached.
ReferenceCapacityExceeded
The configured or fixed-width reference capacity is reached.
ResolutionCapacityExceeded
The configured or fixed-width resolution-record capacity is reached.
A document may state more records than it states references, so this ceiling is reached by a decoded report rather than by a writer.
DuplicateResolution
More than one record names one reference.
UnknownUnit
A definition or reference names a unit the report does not contain.
UnknownDefinition
A parent, enclosing definition, or candidate names an absent definition.
UnknownReference
A record names a reference the report does not contain.
NonDenseId
An identifier does not equal its own sorted slice position.
Fields
collection: ReportCollectionThe collection holding the entry.
UnsortedEntries
A collection is not in its stable structural order.
Fields
collection: ReportCollectionThe collection holding the entry.
DuplicateUnitKey
Two units share one stable key.
UnitLanguageMismatch
A definition or reference contradicts its unit’s language.
The offender is named by its own coordinates, so a bad definition and a bad reference at two positions never produce one value.
Fields
collection: ReportCollectionThe collection holding the offending record.
ForeignParentDefinition
A parent definition belongs to another unit.
ForeignEnclosingDefinition
An enclosing definition belongs to another unit.
DefinitionParentCycle
The definition-parent relation contains a cycle.
MissingResolution
A reference carries no resolution record.
DuplicateCandidate
One record names one definition twice.
UnsortedCandidates
A record’s candidates are out of order.
Fields
DuplicateGap
One record names one gap twice.
UnsortedGaps
A record’s gaps are out of order.
Fields
MixedCandidateCertainty
A record mixes resolved and possible candidates.
ResolvedCandidateCount
A resolved record does not name exactly one definition.
Fields
ResolvedWithGaps
A resolved record carries a gap.
EmptyResolution
A candidate-free record carries no gap.
InvalidSourcePath
A span names a path that is not normalized repository-relative.
ReversedSiteSpan
A span ends before it starts.
EmptySiteSpan
A span covers no source.
Trait Implementations§
Source§impl Clone for ResolutionReportError
impl Clone for ResolutionReportError
Source§fn clone(&self) -> ResolutionReportError
fn clone(&self) -> ResolutionReportError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolutionReportError
impl Debug for ResolutionReportError
Source§impl Display for ResolutionReportError
impl Display for ResolutionReportError
impl Eq for ResolutionReportError
Source§impl Error for ResolutionReportError
impl Error for ResolutionReportError
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()