pub enum ParseWarningKind<'a> {
MissingSeparator {
line: &'a str,
},
EmptyDirectiveKey,
EmptyUserAgent,
RuleBeforeUserAgent {
key: &'a str,
},
}Expand description
Recoverable parse warning categories.
Variants§
MissingSeparator
A non-empty, non-comment line did not contain a : separator.
EmptyDirectiveKey
A directive had a : separator but no key before it.
EmptyUserAgent
A User-agent directive had an empty value.
RuleBeforeUserAgent
An Allow or Disallow directive appeared before any User-agent.
Trait Implementations§
Source§impl<'a> Clone for ParseWarningKind<'a>
impl<'a> Clone for ParseWarningKind<'a>
Source§fn clone(&self) -> ParseWarningKind<'a>
fn clone(&self) -> ParseWarningKind<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ParseWarningKind<'a>
impl<'a> Debug for ParseWarningKind<'a>
Source§impl<'a> PartialEq for ParseWarningKind<'a>
impl<'a> PartialEq for ParseWarningKind<'a>
impl<'a> Eq for ParseWarningKind<'a>
impl<'a> StructuralPartialEq for ParseWarningKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParseWarningKind<'a>
impl<'a> RefUnwindSafe for ParseWarningKind<'a>
impl<'a> Send for ParseWarningKind<'a>
impl<'a> Sync for ParseWarningKind<'a>
impl<'a> Unpin for ParseWarningKind<'a>
impl<'a> UnsafeUnpin for ParseWarningKind<'a>
impl<'a> UnwindSafe for ParseWarningKind<'a>
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