pub struct RuleMessage {
pub id: &'static str,
pub description: &'static str,
}Expand description
Static message catalog entry for a Rust-authored lint rule.
Fields§
§id: &'static strStable rule-local message identifier.
description: &'static strUser-facing fallback message text.
Trait Implementations§
Source§impl Clone for RuleMessage
impl Clone for RuleMessage
Source§fn clone(&self) -> RuleMessage
fn clone(&self) -> RuleMessage
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 RuleMessage
impl Debug for RuleMessage
Source§impl PartialEq for RuleMessage
impl PartialEq for RuleMessage
Source§fn eq(&self, other: &RuleMessage) -> bool
fn eq(&self, other: &RuleMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RuleMessage
impl Eq for RuleMessage
impl StructuralPartialEq for RuleMessage
Auto Trait Implementations§
impl Freeze for RuleMessage
impl RefUnwindSafe for RuleMessage
impl Send for RuleMessage
impl Sync for RuleMessage
impl Unpin for RuleMessage
impl UnsafeUnpin for RuleMessage
impl UnwindSafe for RuleMessage
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