#[non_exhaustive]pub enum ResolveError {
Unresolved {
key: String,
name: String,
span: Range<usize>,
},
Required {
key: String,
name: String,
message: String,
span: Range<usize>,
},
Cycle {
key: String,
chain: Vec<String>,
},
DepthExceeded {
key: String,
limit: usize,
span: Range<usize>,
},
ValueTooLarge {
key: String,
limit: usize,
span: Range<usize>,
},
Command {
key: String,
reference: Range<usize>,
message: String,
},
}Expand description
A resolution failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unresolved
An eligible variable had no value under Unresolved::Error.
Fields
Required
An :? or ? operator required a value.
Fields
Cycle
Reachable bindings formed a cycle.
Fields
DepthExceeded
The configured depth limit was reached.
Fields
ValueTooLarge
One resolved value exceeded the configured byte limit.
Fields
Command
A command callback failed.
Trait Implementations§
Source§impl Clone for ResolveError
impl Clone for ResolveError
Source§impl Debug for ResolveError
impl Debug for ResolveError
Source§impl Display for ResolveError
impl Display for ResolveError
impl Eq for ResolveError
Source§impl Error for ResolveError
impl Error for ResolveError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ResolveError
impl PartialEq for ResolveError
impl StructuralPartialEq for ResolveError
Auto Trait Implementations§
impl Freeze for ResolveError
impl RefUnwindSafe for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Unpin for ResolveError
impl UnsafeUnpin for ResolveError
impl UnwindSafe for ResolveError
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