pub enum ExpandDeclError {
EmptyConstructor {
target: String,
},
EmptySubset {
func: Ident,
param: Ident,
},
DuplicateConstructor {
target: String,
},
DuplicateExpand {
func: Ident,
param: Ident,
},
}Expand description
One structurally invalid expansion declaration (see
ExpandError::InvalidDeclarations).
Variants§
EmptyConstructor
A constructor declaration with no variants.
EmptySubset
A per-fn expand with an empty variant subset.
DuplicateConstructor
Two constructor declarations for the same target type.
DuplicateExpand
Two per-fn expands for the same (fn, param).
Trait Implementations§
Source§impl Debug for ExpandDeclError
impl Debug for ExpandDeclError
Auto Trait Implementations§
impl !Send for ExpandDeclError
impl !Sync for ExpandDeclError
impl Freeze for ExpandDeclError
impl RefUnwindSafe for ExpandDeclError
impl Unpin for ExpandDeclError
impl UnsafeUnpin for ExpandDeclError
impl UnwindSafe for ExpandDeclError
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
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