Struct grep_cli::InvalidPatternError [−][src]
pub struct InvalidPatternError { /* fields omitted */ }
An error that occurs when a pattern could not be converted to valid UTF-8.
The purpose of this error is to give a more targeted failure mode for patterns written by end users that are not valid UTF-8.
Methods
impl InvalidPatternError
[src]
impl InvalidPatternError
pub fn valid_up_to(&self) -> usize
[src]
pub fn valid_up_to(&self) -> usize
Returns the index in the given string up to which valid UTF-8 was verified.
Trait Implementations
impl Clone for InvalidPatternError
[src]
impl Clone for InvalidPatternError
fn clone(&self) -> InvalidPatternError
[src]
fn clone(&self) -> InvalidPatternError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for InvalidPatternError
[src]
impl Debug for InvalidPatternError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for InvalidPatternError
[src]
impl Eq for InvalidPatternError
impl PartialEq for InvalidPatternError
[src]
impl PartialEq for InvalidPatternError
fn eq(&self, other: &InvalidPatternError) -> bool
[src]
fn eq(&self, other: &InvalidPatternError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &InvalidPatternError) -> bool
[src]
fn ne(&self, other: &InvalidPatternError) -> bool
This method tests for !=
.
impl Error for InvalidPatternError
[src]
impl Error for InvalidPatternError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for InvalidPatternError
[src]
impl Display for InvalidPatternError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<InvalidPatternError> for Error
[src]
impl From<InvalidPatternError> for Error
fn from(paterr: InvalidPatternError) -> Error
[src]
fn from(paterr: InvalidPatternError) -> Error
Performs the conversion.
Auto Trait Implementations
impl Send for InvalidPatternError
impl Send for InvalidPatternError
impl Sync for InvalidPatternError
impl Sync for InvalidPatternError