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 InvalidPatternErrorpub fn valid_up_to(&self) -> usize[src]
pub fn valid_up_to(&self) -> usizeReturns the index in the given string up to which valid UTF-8 was verified.
Trait Implementations
impl Clone for InvalidPatternError[src]
impl Clone for InvalidPatternErrorfn clone(&self) -> InvalidPatternError[src]
fn clone(&self) -> InvalidPatternErrorReturns 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 InvalidPatternErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for InvalidPatternError[src]
impl Eq for InvalidPatternErrorimpl PartialEq for InvalidPatternError[src]
impl PartialEq for InvalidPatternErrorfn eq(&self, other: &InvalidPatternError) -> bool[src]
fn eq(&self, other: &InvalidPatternError) -> boolThis 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) -> boolThis method tests for !=.
impl Error for InvalidPatternError[src]
impl Error for InvalidPatternErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis 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 InvalidPatternErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<InvalidPatternError> for Error[src]
impl From<InvalidPatternError> for Errorfn from(paterr: InvalidPatternError) -> Error[src]
fn from(paterr: InvalidPatternError) -> ErrorPerforms the conversion.
Auto Trait Implementations
impl Send for InvalidPatternError
impl Send for InvalidPatternErrorimpl Sync for InvalidPatternError
impl Sync for InvalidPatternError