pub enum ToSynError {
ParsePath {
input: String,
message: String,
},
ParseExpr {
input: String,
message: String,
},
ParsePattern {
input: String,
message: String,
},
ParseType {
input: String,
message: String,
},
MissingValue {
context: String,
},
Other {
message: String,
},
}Expand description
Error type for ToSyn conversions.
Variants§
ParsePath
Failed to parse a path string (e.g., invalid syntax)
Fields
ParseExpr
Failed to parse an expression
Fields
ParsePattern
Failed to parse a pattern
Fields
ParseType
Failed to parse a type
Fields
MissingValue
Missing required value
Other
Other conversion error
Trait Implementations§
Source§impl Clone for ToSynError
impl Clone for ToSynError
Source§fn clone(&self) -> ToSynError
fn clone(&self) -> ToSynError
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 ToSynError
impl Debug for ToSynError
Source§impl Display for ToSynError
impl Display for ToSynError
Source§impl Error for ToSynError
impl Error for ToSynError
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()
Auto Trait Implementations§
impl Freeze for ToSynError
impl RefUnwindSafe for ToSynError
impl Send for ToSynError
impl Sync for ToSynError
impl Unpin for ToSynError
impl UnsafeUnpin for ToSynError
impl UnwindSafe for ToSynError
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