pub enum Namespace {
Lanekeep,
Local,
}Expand description
Where a rule came from.
Closed rather than open: an unknown namespace is a typo, not an extension point. Adding
a variant later is additive and cannot invalidate an existing ID, whereas accepting
arbitrary namespaces now would make lanekep/foo a valid ID that silently never matches
anything.
Variants§
Lanekeep
A rule shipped with lanekeep and reviewed by a maintainer.
Local
A rule authored in the project being checked.
Implementations§
Trait Implementations§
impl Copy for Namespace
impl Eq for Namespace
Source§impl Ord for Namespace
impl Ord for Namespace
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 Namespace
impl PartialOrd for Namespace
impl StructuralPartialEq for Namespace
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnsafeUnpin for Namespace
impl UnwindSafe for Namespace
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