#[non_exhaustive]pub struct StdlibDiagnostic {
pub rule: RuleId,
pub form: UnsupportedForm,
pub message: &'static str,
}Expand description
Diagnostic metadata for a known standard-library API that cannot lower yet.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rule: RuleIdRule whose API spelling was recognized.
form: UnsupportedFormUnsupported source shape.
message: &'static strStable user-facing diagnostic message.
Implementations§
Source§impl StdlibDiagnostic
impl StdlibDiagnostic
Sourcepub const fn unsupported(
rule: RuleId,
form: UnsupportedForm,
message: &'static str,
) -> Self
pub const fn unsupported( rule: RuleId, form: UnsupportedForm, message: &'static str, ) -> Self
Create a diagnostic for an unsupported known API form.
Trait Implementations§
Source§impl Clone for StdlibDiagnostic
impl Clone for StdlibDiagnostic
impl Copy for StdlibDiagnostic
Source§impl Debug for StdlibDiagnostic
impl Debug for StdlibDiagnostic
impl Eq for StdlibDiagnostic
Source§impl PartialEq for StdlibDiagnostic
impl PartialEq for StdlibDiagnostic
impl StructuralPartialEq for StdlibDiagnostic
Auto Trait Implementations§
impl Freeze for StdlibDiagnostic
impl RefUnwindSafe for StdlibDiagnostic
impl Send for StdlibDiagnostic
impl Sync for StdlibDiagnostic
impl Unpin for StdlibDiagnostic
impl UnsafeUnpin for StdlibDiagnostic
impl UnwindSafe for StdlibDiagnostic
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