pub struct UnknownKeyword { /* private fields */ }Expand description
A string that is not one of the keywords of a PDDL type, e.g. "incr" for an
AssignOp.
The error of every keyword type’s TryFrom<&str>, which ignores ASCII case
like the parser.
§Example
let error = AssignOp::try_from("incr").unwrap_err();
assert_eq!(error.found(), "incr");
assert_eq!(error.expected(), "assignment operator");
assert_eq!(error.to_string(), "`incr` is not a valid assignment operator");Implementations§
Trait Implementations§
Source§impl Clone for UnknownKeyword
impl Clone for UnknownKeyword
Source§impl Debug for UnknownKeyword
impl Debug for UnknownKeyword
Source§impl Display for UnknownKeyword
impl Display for UnknownKeyword
impl Eq for UnknownKeyword
Source§impl Error for UnknownKeyword
impl Error for UnknownKeyword
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 UnknownKeyword
impl PartialEq for UnknownKeyword
impl StructuralPartialEq for UnknownKeyword
Auto Trait Implementations§
impl Forget for UnknownKeyword
impl Freeze for UnknownKeyword
impl Move for UnknownKeyword
impl RefUnwindSafe for UnknownKeyword
impl Send for UnknownKeyword
impl Sync for UnknownKeyword
impl Unpin for UnknownKeyword
impl UnsafeUnpin for UnknownKeyword
impl UnwindSafe for UnknownKeyword
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
Source§fn accept_mut(&self, v: &mut V) -> O
fn accept_mut(&self, v: &mut V) -> O
Lets the mutable visitor
v visit self.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