Struct rustc_errors::diagnostic_builder::Noted
source · pub struct Noted;
Expand description
Marker type which enables implementation of create_note
and emit_note
functions for
note-without-error struct diagnostics.
Trait Implementations§
source§impl EmissionGuarantee for Noted
impl EmissionGuarantee for Noted
source§fn diagnostic_builder_emit_producing_guarantee(
db: &mut DiagnosticBuilder<'_, Self>
) -> Self
fn diagnostic_builder_emit_producing_guarantee( db: &mut DiagnosticBuilder<'_, Self> ) -> Self
Implementation of
DiagnosticBuilder::emit
, fully controlled by each
impl
of EmissionGuarantee
, to make it impossible to create a value
of Self
without actually performing the emission.source§fn make_diagnostic_builder(
handler: &Handler,
msg: impl Into<DiagnosticMessage>
) -> DiagnosticBuilder<'_, Self>
fn make_diagnostic_builder( handler: &Handler, msg: impl Into<DiagnosticMessage> ) -> DiagnosticBuilder<'_, Self>
Creates a new
DiagnosticBuilder
that will return this type of guarantee.impl Copy for Noted
Auto Trait Implementations§
impl RefUnwindSafe for Noted
impl Send for Noted
impl Sync for Noted
impl Unpin for Noted
impl UnwindSafe for Noted
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes