pub enum InterpolationErrorKind {
MissingRequiredVariable {
variable: String,
message: String,
},
CircularReference {
cycle: Vec<String>,
},
InvalidSyntax {
expression: String,
reason: &'static str,
},
}Expand description
Specific interpolation failure kinds.
Variants§
MissingRequiredVariable
A ${VAR:?message} or ${VAR?message} expansion failed.
Fields
CircularReference
A cycle was found while recursively expanding values.
InvalidSyntax
${...} contained invalid syntax.
Trait Implementations§
Source§impl Clone for InterpolationErrorKind
impl Clone for InterpolationErrorKind
Source§fn clone(&self) -> InterpolationErrorKind
fn clone(&self) -> InterpolationErrorKind
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 InterpolationErrorKind
impl Debug for InterpolationErrorKind
Source§impl Display for InterpolationErrorKind
impl Display for InterpolationErrorKind
impl Eq for InterpolationErrorKind
Source§impl PartialEq for InterpolationErrorKind
impl PartialEq for InterpolationErrorKind
Source§fn eq(&self, other: &InterpolationErrorKind) -> bool
fn eq(&self, other: &InterpolationErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterpolationErrorKind
Auto Trait Implementations§
impl Freeze for InterpolationErrorKind
impl RefUnwindSafe for InterpolationErrorKind
impl Send for InterpolationErrorKind
impl Sync for InterpolationErrorKind
impl Unpin for InterpolationErrorKind
impl UnsafeUnpin for InterpolationErrorKind
impl UnwindSafe for InterpolationErrorKind
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