pub enum Problem {
Syntax {
path: Vec<Seg>,
error: Syntax,
},
Unresolved {
path: Vec<Seg>,
reference: String,
},
NotStringifiable {
path: Vec<Seg>,
reference: String,
kind: &'static str,
},
}Expand description
One thing wrong with one reference.
Variants§
Syntax
A reference that is not spelled like one.
Unresolved
A reference that names nothing: a key the merged document does not have, or a variable the environment does not set.
An error rather than a pass-through. Leaving ${db.hostname} in the
output would ship a typo as a literal, and the document is already the
authority on what exists.
NotStringifiable
A container or a null in embedded position — url = "http://${db}/".
Legal in whole-string position, where it aliases the subtree. Embedded it has no format-independent rendering, so it is rejected in v1.
Implementations§
Trait Implementations§
impl Eq for Problem
impl StructuralPartialEq for Problem
Auto Trait Implementations§
impl Freeze for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin for Problem
impl UnwindSafe for Problem
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.