Enum proptest::string::Error [−]
pub enum Error { RegexSyntax(ParseError), UnsupportedRegex(&'static str), }
Errors which may occur when preparing a regular expression for use with string generation.
Variants
RegexSyntax(ParseError)
The string passed as the regex was not syntactically valid.
UnsupportedRegex(&'static str)
The regex was syntactically valid, but contains elements not supported by proptest.
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
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 Display for Error
impl Display for Error
impl Error for Error
impl Error for Error
fn description(&self) -> &str
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<ParseError> for Error
impl From<ParseError> for Error
fn from(err: ParseError) -> Error
fn from(err: ParseError) -> Error
Performs the conversion.