pub struct ScopedName {
scope: LintScope,
name: &'static str,
}Expand description
The fully qualified name of a lint rule.
A ScopedName combines the LintScope with the rule’s identifier,
forming a unique name in the format {scope}::{name}.
§Examples
use alpm_lint::{LintScope, ScopedName};
let name = ScopedName::new(LintScope::SourceRepository, "my_rule");
assert_eq!("source_repository::my_rule", name.to_string());Fields§
§scope: LintScope§name: &'static strImplementations§
Source§impl ScopedName
impl ScopedName
Sourcepub fn new(scope: LintScope, name: &'static str) -> Self
pub fn new(scope: LintScope, name: &'static str) -> Self
Create a new instance of ScopedName
Trait Implementations§
Source§impl Clone for ScopedName
impl Clone for ScopedName
Source§fn clone(&self) -> ScopedName
fn clone(&self) -> ScopedName
Returns a duplicate of the value. Read more
1.0.0 · 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 ScopedName
impl Debug for ScopedName
Source§impl Display for ScopedName
impl Display for ScopedName
Source§impl PartialEq for ScopedName
impl PartialEq for ScopedName
impl StructuralPartialEq for ScopedName
Auto Trait Implementations§
impl Freeze for ScopedName
impl RefUnwindSafe for ScopedName
impl Send for ScopedName
impl Sync for ScopedName
impl Unpin for ScopedName
impl UnwindSafe for ScopedName
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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