pub struct Error {
pub rule: &'static str,
pub text: String,
}Expand description
A broken rule of issue hygiene.
let error = hygiene::Error::new("link", "the body has no link line");
assert_eq!(error.to_string(), "link: the body has no link line");Fields§
§rule: &'static strThe rule, for example link. See the table of rules.
text: StringWhat is wrong, and what to do.
Implementations§
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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