pub enum ResolutionError {
UnknownKey {
ty: PlaceholderType,
key: String,
start: usize,
},
DuplicateLidKey {
key: String,
occurrences: Vec<usize>,
},
}Expand description
What the resolver couldn’t satisfy. Aggregated by the pre-flight phase (RFC §2.4 / §3 Q7) so apply abort can report every failure at once.
Variants§
UnknownKey
DuplicateLidKey
Same lid key referenced more than once in a single body / field.
RFC §5 edge case: lid is a per-click-context ID so re-use is
conceptually wrong — abort rather than substitute the same value.
occurrences holds the byte offsets of every reference so the
failure report can point operators at the duplicates directly.
Trait Implementations§
Source§impl Clone for ResolutionError
impl Clone for ResolutionError
Source§fn clone(&self) -> ResolutionError
fn clone(&self) -> ResolutionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolutionError
impl Debug for ResolutionError
Source§impl PartialEq for ResolutionError
impl PartialEq for ResolutionError
Source§fn eq(&self, other: &ResolutionError) -> bool
fn eq(&self, other: &ResolutionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ResolutionError
impl StructuralPartialEq for ResolutionError
Auto Trait Implementations§
impl Freeze for ResolutionError
impl RefUnwindSafe for ResolutionError
impl Send for ResolutionError
impl Sync for ResolutionError
impl Unpin for ResolutionError
impl UnsafeUnpin for ResolutionError
impl UnwindSafe for ResolutionError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.