pub struct ParseFilterError { /* private fields */ }Available on crate feature
std only.Expand description
Error returned by Filter::parse.
Carries the kind of problem and the offending directive segment so the message can point at the exact mistake.
Implementations§
Source§impl ParseFilterError
impl ParseFilterError
Sourcepub fn kind(&self) -> ParseFilterErrorKind
pub fn kind(&self) -> ParseFilterErrorKind
What was wrong.
Sourcepub fn segment(&self) -> &str
pub fn segment(&self) -> &str
The offending segment (the whole directive for
ParseFilterErrorKind::Empty, and a lossy rendering of the
value for ParseFilterErrorKind::NotUnicode).
Trait Implementations§
Source§impl Clone for ParseFilterError
impl Clone for ParseFilterError
Source§impl Debug for ParseFilterError
impl Debug for ParseFilterError
Source§impl Display for ParseFilterError
impl Display for ParseFilterError
impl Eq for ParseFilterError
Source§impl Error for ParseFilterError
impl Error for ParseFilterError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ParseFilterError
impl PartialEq for ParseFilterError
impl StructuralPartialEq for ParseFilterError
Auto Trait Implementations§
impl Forget for ParseFilterError
impl Freeze for ParseFilterError
impl Move for ParseFilterError
impl RefUnwindSafe for ParseFilterError
impl Send for ParseFilterError
impl Sync for ParseFilterError
impl Unpin for ParseFilterError
impl UnsafeUnpin for ParseFilterError
impl UnwindSafe for ParseFilterError
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