pub enum WorkshopError {
Catalog(CatalogError),
Unknown {
kind: &'static str,
spelling: String,
locale: Locale,
span: Option<Span>,
},
MissingMapping {
kind: &'static str,
id: String,
locale: Locale,
},
Malformed {
message: String,
span: Option<Span>,
},
Unsupported {
message: String,
span: Option<Span>,
},
}Expand description
A structured Workshop-language error.
Variants§
Catalog(CatalogError)
Catalog data is malformed or fails validation.
Unknown
A localized spelling is unknown or ambiguous.
MissingMapping
A canonical builtin has no spelling mapped for the target locale.
Missing target-locale mappings fail explicitly (never a guess, never a
silent passthrough of another locale’s spelling); fallback is opt-in
(crate::emitter::EmitOptions, crate::convert::ConvertOptions).
Malformed
The input is syntactically malformed.
Unsupported
A construct is recognized but outside the supported surface.
Trait Implementations§
Source§impl Clone for WorkshopError
impl Clone for WorkshopError
Source§fn clone(&self) -> WorkshopError
fn clone(&self) -> WorkshopError
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 WorkshopError
impl Debug for WorkshopError
Source§impl Display for WorkshopError
impl Display for WorkshopError
impl Eq for WorkshopError
Source§impl PartialEq for WorkshopError
impl PartialEq for WorkshopError
impl StructuralPartialEq for WorkshopError
Auto Trait Implementations§
impl Freeze for WorkshopError
impl RefUnwindSafe for WorkshopError
impl Send for WorkshopError
impl Sync for WorkshopError
impl Unpin for WorkshopError
impl UnsafeUnpin for WorkshopError
impl UnwindSafe for WorkshopError
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