pub struct InvalidExpression {
pub range: Range<usize>,
pub text: String,
pub reason: ExprError,
}Expand description
A ${...} occurrence that does not parse as an expression.
Fields§
§range: Range<usize>Byte range of the occurrence within the scanned string.
text: StringThe occurrence as written, including the ${ and the }.
reason: ExprErrorWhy it is not a usable expression.
Trait Implementations§
Source§impl Clone for InvalidExpression
impl Clone for InvalidExpression
Source§impl Debug for InvalidExpression
impl Debug for InvalidExpression
impl Eq for InvalidExpression
Source§impl PartialEq for InvalidExpression
impl PartialEq for InvalidExpression
impl StructuralPartialEq for InvalidExpression
Auto Trait Implementations§
impl Freeze for InvalidExpression
impl RefUnwindSafe for InvalidExpression
impl Send for InvalidExpression
impl Sync for InvalidExpression
impl Unpin for InvalidExpression
impl UnsafeUnpin for InvalidExpression
impl UnwindSafe for InvalidExpression
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.