#[non_exhaustive]pub enum NormalizeError {
MissingRate {
index: usize,
label: String,
},
WhileWithoutDuration {
source_id: String,
},
DelayWithoutWhile {
source_id: String,
},
CloseEmitConflict {
source_id: String,
},
WhileValueIsNan {
source_id: String,
},
CloseSnapToIsNan {
source_id: String,
},
}Expand description
Errors produced during defaults resolution.
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.
MissingRate
An entry has no rate either inline or via the defaults: block.
The offending entry is identified by its zero-based index and, when
available, its name or id for human-readable diagnostics.
Fields
WhileWithoutDuration
DelayWithoutWhile
CloseEmitConflict
WhileValueIsNan
CloseSnapToIsNan
Trait Implementations§
Source§impl Debug for NormalizeError
impl Debug for NormalizeError
Source§impl Display for NormalizeError
impl Display for NormalizeError
Source§impl Error for NormalizeError
impl Error for NormalizeError
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 From<NormalizeError> for CompileError
impl From<NormalizeError> for CompileError
Source§fn from(source: NormalizeError) -> Self
fn from(source: NormalizeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NormalizeError
impl RefUnwindSafe for NormalizeError
impl Send for NormalizeError
impl Sync for NormalizeError
impl Unpin for NormalizeError
impl UnsafeUnpin for NormalizeError
impl UnwindSafe for NormalizeError
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