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 Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Error
impl Display for Errorimpl Error for Error
impl Error for Errorfn description(&self) -> &str
fn description(&self) -> &strThis 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 Errorfn from(err: ParseError) -> Error
fn from(err: ParseError) -> ErrorPerforms the conversion.