pub(crate) enum DiagnosticDeriveKind {
Diagnostic,
LintDiagnostic,
}
Expand description
What kind of diagnostic is being derived - a fatal/error/warning or a lint?
Variants§
Implementations§
Source§impl DiagnosticDeriveKind
impl DiagnosticDeriveKind
Sourcepub(crate) fn each_variant<'s, F>(
self,
structure: &mut Structure<'s>,
f: F,
) -> TokenStream
pub(crate) fn each_variant<'s, F>( self, structure: &mut Structure<'s>, f: F, ) -> TokenStream
Call f
for the struct or for each variant of the enum, returning a TokenStream
with the
tokens from f
wrapped in an match
expression. Emits errors for use of derive on unions
or attributes on the type itself when input is an enum.
Trait Implementations§
Source§impl Clone for DiagnosticDeriveKind
impl Clone for DiagnosticDeriveKind
Source§fn clone(&self) -> DiagnosticDeriveKind
fn clone(&self) -> DiagnosticDeriveKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for DiagnosticDeriveKind
impl PartialEq for DiagnosticDeriveKind
impl Copy for DiagnosticDeriveKind
impl Eq for DiagnosticDeriveKind
impl StructuralPartialEq for DiagnosticDeriveKind
Auto Trait Implementations§
impl Freeze for DiagnosticDeriveKind
impl RefUnwindSafe for DiagnosticDeriveKind
impl Send for DiagnosticDeriveKind
impl Sync for DiagnosticDeriveKind
impl Unpin for DiagnosticDeriveKind
impl UnwindSafe for DiagnosticDeriveKind
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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> 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