pub struct ExpectedExpr {
pub expected: &'static str,
}Expand description
Expected to see a certain kind of expression here.
The expected field should also contain the word “a” or “an” at the beginning to make the
error grammatically correct.
Fields§
§expected: &'static strThe kind of expression that was expected.
Trait Implementations§
Source§impl Clone for ExpectedExpr
impl Clone for ExpectedExpr
Source§fn clone(&self) -> ExpectedExpr
fn clone(&self) -> ExpectedExpr
Returns a duplicate of the value. Read more
1.0.0 · 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 ExpectedExpr
impl Debug for ExpectedExpr
Source§impl ErrorKind for ExpectedExpr
impl ErrorKind for ExpectedExpr
Source§impl PartialEq for ExpectedExpr
impl PartialEq for ExpectedExpr
impl StructuralPartialEq for ExpectedExpr
Auto Trait Implementations§
impl Freeze for ExpectedExpr
impl RefUnwindSafe for ExpectedExpr
impl Send for ExpectedExpr
impl Sync for ExpectedExpr
impl Unpin for ExpectedExpr
impl UnwindSafe for ExpectedExpr
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