pub enum FormatRuleSource {
Inline,
PatternId(String),
}Expand description
Provenance of the regex used by the check.
Variants§
Inline
Inline format_regex on the index entry.
PatternId(String)
pattern_id resolved through the catalogue. The string is
the id we looked up.
Trait Implementations§
Source§impl Clone for FormatRuleSource
impl Clone for FormatRuleSource
Source§fn clone(&self) -> FormatRuleSource
fn clone(&self) -> FormatRuleSource
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 FormatRuleSource
impl Debug for FormatRuleSource
impl Eq for FormatRuleSource
Source§impl PartialEq for FormatRuleSource
impl PartialEq for FormatRuleSource
Source§fn eq(&self, other: &FormatRuleSource) -> bool
fn eq(&self, other: &FormatRuleSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FormatRuleSource
Auto Trait Implementations§
impl Freeze for FormatRuleSource
impl RefUnwindSafe for FormatRuleSource
impl Send for FormatRuleSource
impl Sync for FormatRuleSource
impl Unpin for FormatRuleSource
impl UnsafeUnpin for FormatRuleSource
impl UnwindSafe for FormatRuleSource
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.