pub enum LintCode {
UnusedDomain,
OrphanPredicate,
DomainNamingConvention,
PredicateNamingConvention,
EmptyDomain,
ZeroArityPredicate,
}Expand description
A lint rule code identifying the check that triggered it.
Variants§
UnusedDomain
Domain is defined but not referenced by any predicate
OrphanPredicate
Predicate references a domain that doesn’t exist
DomainNamingConvention
Domain name doesn’t follow PascalCase convention
PredicateNamingConvention
Predicate name doesn’t follow snake_case convention
EmptyDomain
Domain has zero cardinality
ZeroArityPredicate
Predicate has zero arity (no arguments)
Implementations§
Source§impl LintCode
impl LintCode
Sourcepub fn default_severity(&self) -> LintSeverity
pub fn default_severity(&self) -> LintSeverity
Returns the default severity for this lint code.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LintCode
impl<'de> Deserialize<'de> for LintCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LintCode
impl StructuralPartialEq for LintCode
Auto Trait Implementations§
impl Freeze for LintCode
impl RefUnwindSafe for LintCode
impl Send for LintCode
impl Sync for LintCode
impl Unpin for LintCode
impl UnsafeUnpin for LintCode
impl UnwindSafe for LintCode
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> Equivalent<K> for Q
impl<Q, K> Equivalent<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.