pub struct DiagnosticMessageSet { /* private fields */ }Expand description
Diagnostic localization helpers.
See resolve_message_set for fetching primary, note, and help strings.
Container holding the standard trio of lint diagnostic messages.
Implementations§
Source§impl DiagnosticMessageSet
impl DiagnosticMessageSet
Sourcepub fn new(primary: String, note: String, help: String) -> Self
pub fn new(primary: String, note: String, help: String) -> Self
Construct a new set of lint diagnostic strings.
§Examples
let messages = DiagnosticMessageSet::new(
"primary".into(),
"note".into(),
"help".into(),
);
assert_eq!(messages.primary(), "primary");Trait Implementations§
Source§impl Clone for DiagnosticMessageSet
impl Clone for DiagnosticMessageSet
Source§fn clone(&self) -> DiagnosticMessageSet
fn clone(&self) -> DiagnosticMessageSet
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 DiagnosticMessageSet
impl Debug for DiagnosticMessageSet
impl Eq for DiagnosticMessageSet
Source§impl PartialEq for DiagnosticMessageSet
impl PartialEq for DiagnosticMessageSet
impl StructuralPartialEq for DiagnosticMessageSet
Auto Trait Implementations§
impl Freeze for DiagnosticMessageSet
impl RefUnwindSafe for DiagnosticMessageSet
impl Send for DiagnosticMessageSet
impl Sync for DiagnosticMessageSet
impl Unpin for DiagnosticMessageSet
impl UnsafeUnpin for DiagnosticMessageSet
impl UnwindSafe for DiagnosticMessageSet
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