pub enum TranspileError {
Parse(String),
Validation(ValidationError),
Unsupported(String),
Type(String),
}Expand description
Errors that can occur during transpilation.
Variants§
Parse(String)
Failed to parse Rust code.
Validation(ValidationError)
DSL constraint violation.
Unsupported(String)
Unsupported Rust construct.
Type(String)
Type mapping failure.
Trait Implementations§
Source§impl Debug for TranspileError
impl Debug for TranspileError
Source§impl Display for TranspileError
impl Display for TranspileError
Source§impl Error for TranspileError
impl Error for TranspileError
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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ValidationError> for TranspileError
impl From<ValidationError> for TranspileError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TranspileError
impl RefUnwindSafe for TranspileError
impl Send for TranspileError
impl Sync for TranspileError
impl Unpin for TranspileError
impl UnwindSafe for TranspileError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more