pub enum CodeError<Id> {
Empty,
MalformedLocation {
instruction: Id,
start: usize,
end: usize,
},
OverlappingLocations {
first: Id,
second: Id,
},
IdentityMismatch {
supplied: Id,
derived: Id,
},
DuplicateIdentity {
instruction: Id,
},
UnknownInstruction {
instruction: Id,
},
InteriorTarget {
from: Id,
target: usize,
containing: Id,
},
OutOfRangeTarget {
from: Id,
target: usize,
},
MalformedRegion {
start: Id,
end_index: usize,
},
OverlappingRegions {
first_start: Id,
second_start: Id,
},
}Expand description
Exact refusal evidence produced while freezing located code.
Variants§
Empty
No instructions were supplied.
MalformedLocation
An instruction’s location is empty or reversed.
Fields
instruction: IdInstruction carrying the malformed location.
OverlappingLocations
Two instruction source ranges overlap.
IdentityMismatch
The supplied stable identity does not match the instruction policy.
Fields
supplied: IdIdentity supplied with the location.
derived: IdIdentity derived by the instruction policy.
DuplicateIdentity
A stable instruction identity occurs more than once.
Fields
instruction: IdRepeated identity.
UnknownInstruction
A branch source, region boundary, or identity target is unknown.
Fields
instruction: IdIdentity that is absent from the code.
InteriorTarget
A raw target lies strictly inside an instruction rather than on its boundary.
Fields
from: IdInstruction containing the branch or region declaration.
containing: IdInstruction whose interior contains the position.
OutOfRangeTarget
A raw target is outside every instruction boundary.
Fields
from: IdInstruction containing the branch or region declaration.
MalformedRegion
A protected region is empty or reversed.
OverlappingRegions
Protected regions overlap.