pub struct Rule {
pub field: &'static str,
pub placeholder: &'static str,
pub predicate: Predicate,
pub reason: &'static str,
}Expand description
One rule: a header name, a placeholder, a predicate, and the reason.
Fields§
§field: &'static strThe header name, in lower case.
placeholder: &'static strThe text that replaces the value.
predicate: PredicateWhat the rule asserts about the value that it erases.
reason: &'static strWhy the value cannot be compared directly.
Auto Trait Implementations§
impl Forget for Rule
impl Freeze for Rule
impl Move for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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