Struct proptest::test_runner::Reason [−][src]
pub struct Reason(_);
The reason for why something, such as a generated value, was rejected.
Currently this is merely a wrapper around a message, but more properties may be added in the future.
This is constructed via .into() on a String, &'static str, or
Box<str>.
Methods
impl Reason[src]
impl Reasonpub fn message(&self) -> &str[src]
pub fn message(&self) -> &strReturn the message for this Reason.
The message is intended for human consumption, and is not guaranteed to have any format in particular.
Trait Implementations
impl Debug for Reason[src]
impl Debug for Reasonfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Reason[src]
impl Clone for Reasonfn clone(&self) -> Reason[src]
fn clone(&self) -> ReasonReturns 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)Performs copy-assignment from source. Read more
impl PartialEq for Reason[src]
impl PartialEq for Reasonfn eq(&self, other: &Reason) -> bool[src]
fn eq(&self, other: &Reason) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Reason) -> bool[src]
fn ne(&self, other: &Reason) -> boolThis method tests for !=.
impl Eq for Reason[src]
impl Eq for Reasonimpl PartialOrd for Reason[src]
impl PartialOrd for Reasonfn partial_cmp(&self, other: &Reason) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Reason) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Reason) -> bool[src]
fn lt(&self, other: &Reason) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Reason) -> bool[src]
fn le(&self, other: &Reason) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Reason) -> bool[src]
fn gt(&self, other: &Reason) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Reason) -> bool[src]
fn ge(&self, other: &Reason) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Reason[src]
impl Ord for Reasonfn cmp(&self, other: &Reason) -> Ordering[src]
fn cmp(&self, other: &Reason) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for Reason[src]
impl Hash for Reasonfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl From<&'static str> for Reason[src]
impl From<&'static str> for Reasonimpl From<String> for Reason[src]
impl From<String> for Reasonimpl From<Box<str>> for Reason[src]
impl From<Box<str>> for Reasonimpl Display for Reason[src]
impl Display for Reason