#[non_exhaustive]pub enum BuiltinOverrideError {
MalformedEntry(String),
UnknownBuiltin(String),
EmptySide(String),
Conflict {
builtin: &'static str,
first: String,
second: String,
},
}Expand description
Why a LAMINA_BUILTINS value could not be read.
An override that cannot be understood is reported rather than dropped: a typo in the variable would otherwise leave the default symbol in the output, with nothing said about it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MalformedEntry(String)
An entry with no =, so it names neither a builtin nor a replacement.
UnknownBuiltin(String)
An entry whose left side is not a runtime helper this compiler calls.
EmptySide(String)
An entry with an empty builtin name or an empty replacement symbol.
Conflict
Two entries naming the same builtin, with different replacements.
Trait Implementations§
Source§impl Clone for BuiltinOverrideError
impl Clone for BuiltinOverrideError
Source§impl Debug for BuiltinOverrideError
impl Debug for BuiltinOverrideError
Source§impl Display for BuiltinOverrideError
impl Display for BuiltinOverrideError
impl Eq for BuiltinOverrideError
Source§impl Error for BuiltinOverrideError
impl Error for BuiltinOverrideError
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 BuiltinOverrideError
impl PartialEq for BuiltinOverrideError
impl StructuralPartialEq for BuiltinOverrideError
Auto Trait Implementations§
impl Freeze for BuiltinOverrideError
impl RefUnwindSafe for BuiltinOverrideError
impl Send for BuiltinOverrideError
impl Sync for BuiltinOverrideError
impl Unpin for BuiltinOverrideError
impl UnsafeUnpin for BuiltinOverrideError
impl UnwindSafe for BuiltinOverrideError
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