pub enum ParamParseError {
Empty,
TypeDef {
name: String,
},
MissingDef,
InvalidFlag,
InvalidGeneric,
NotImplemented,
}Expand description
Errors produced while parsing a single parameter token.
Variants§
Empty
An empty string was encountered where a name/type was expected.
TypeDef
A {X:Type} generic type definition (not a real error; used as a signal).
MissingDef
A {…} block that isn’t a valid type definition.
InvalidFlag
A flag expression (name.N?Type) was malformed.
InvalidGeneric
A generic <…> argument was malformed (missing closing >).
NotImplemented
A bare name with no :type — e.g. old-style ? = Int.
Trait Implementations§
Source§impl Clone for ParamParseError
impl Clone for ParamParseError
Source§fn clone(&self) -> ParamParseError
fn clone(&self) -> ParamParseError
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 ParamParseError
impl Debug for ParamParseError
Source§impl Display for ParamParseError
impl Display for ParamParseError
Source§impl Error for ParamParseError
impl Error for ParamParseError
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 ParamParseError
impl PartialEq for ParamParseError
impl StructuralPartialEq for ParamParseError
Auto Trait Implementations§
impl Freeze for ParamParseError
impl RefUnwindSafe for ParamParseError
impl Send for ParamParseError
impl Sync for ParamParseError
impl Unpin for ParamParseError
impl UnsafeUnpin for ParamParseError
impl UnwindSafe for ParamParseError
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