Enum modalkit::key::MacroError
source · #[non_exhaustive]pub enum MacroError {
InvalidMacro(String),
EmptyMacro,
LoopingMacro(usize),
}
Expand description
Errors that occur while trying to use macros.
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.
InvalidMacro(String)
Failure to interpret macro string.
EmptyMacro
Empty macro string.
LoopingMacro(usize)
A macro that seems to be looping.
Trait Implementations§
source§impl Debug for MacroError
impl Debug for MacroError
source§impl Display for MacroError
impl Display for MacroError
source§impl Error for MacroError
impl Error for MacroError
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<I: ApplicationInfo> From<MacroError> for EditError<I>
impl<I: ApplicationInfo> From<MacroError> for EditError<I>
source§fn from(source: MacroError) -> Self
fn from(source: MacroError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MacroError
impl RefUnwindSafe for MacroError
impl Send for MacroError
impl Sync for MacroError
impl Unpin for MacroError
impl UnwindSafe for MacroError
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