pub struct RuleKey {
pub package: PackageName,
pub name: &'static str,
}Expand description
Unique identifier for a rule, composed of its package and a human-readable name.
The Display impl produces the slash-separated form "package/name" which is
used in diagnostics, builder filters, and rule-selection configuration.
Fields§
§package: PackageNameThe package namespace this rule belongs to.
name: &'static strA short, unique name within the package.
Trait Implementations§
impl Copy for RuleKey
impl Eq for RuleKey
Source§impl Ord for RuleKey
impl Ord for RuleKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for RuleKey
impl PartialOrd for RuleKey
impl StructuralPartialEq for RuleKey
Auto Trait Implementations§
impl Freeze for RuleKey
impl RefUnwindSafe for RuleKey
impl Send for RuleKey
impl Sync for RuleKey
impl Unpin for RuleKey
impl UnsafeUnpin for RuleKey
impl UnwindSafe for RuleKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.