pub enum MacroErrorKind {
NotEnoughArguments {
expected: usize,
found: usize,
},
Nonexistent,
User {
message: String,
},
}Expand description
A kind of error that can occur when a macro is executed.
Variants§
NotEnoughArguments
Not enough arguments were supplied.
Nonexistent
A macro didn’t exist.
User
An error was thrown in the macro.
Implementations§
Trait Implementations§
Source§impl Clone for MacroErrorKind
impl Clone for MacroErrorKind
Source§fn clone(&self) -> MacroErrorKind
fn clone(&self) -> MacroErrorKind
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 MacroErrorKind
impl Debug for MacroErrorKind
Source§impl Display for MacroErrorKind
impl Display for MacroErrorKind
impl Eq for MacroErrorKind
Source§impl Hash for MacroErrorKind
impl Hash for MacroErrorKind
Source§impl PartialEq for MacroErrorKind
impl PartialEq for MacroErrorKind
impl StructuralPartialEq for MacroErrorKind
Auto Trait Implementations§
impl Freeze for MacroErrorKind
impl RefUnwindSafe for MacroErrorKind
impl Send for MacroErrorKind
impl Sync for MacroErrorKind
impl Unpin for MacroErrorKind
impl UnsafeUnpin for MacroErrorKind
impl UnwindSafe for MacroErrorKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more