pub enum PropResult {
Passed {
test_cases: TestCases,
},
Falsified {
failure: FailedCase,
successes: SuccessCount,
},
Proved,
}
Expand description
Represents the result of the property.
プロパティの結果を表す.
Variants§
Passed
The property is passed.
Falsified
The property is falsified.
Fields
§
failure: FailedCase
The failure of the property.
§
successes: SuccessCount
The number of successes.
Proved
Implementations§
Source§impl PropResult
impl PropResult
Sourcepub fn map<F>(self, f: F) -> PropResult
pub fn map<F>(self, f: F) -> PropResult
Sourcepub fn flat_map<F>(self, f: F) -> PropResult
pub fn flat_map<F>(self, f: F) -> PropResult
Sourcepub fn to_result(self) -> Result<String>
pub fn to_result(self) -> Result<String>
The to_result
method can convert the PropResult to Result.
to_resultメソッドはPropResultをResultに変換することができる.
§Returns
Result<String>
- The result of the PropResult.
Sourcepub fn to_result_unit(self) -> Result<()>
pub fn to_result_unit(self) -> Result<()>
The to_result_unit
method can convert the PropResult to Result with the message.
to_result_unitメソッドはPropResultをResultに変換することができる.
§Returns
Result<()>
- The result without the message of the PropResult
Trait Implementations§
Source§impl Clone for PropResult
impl Clone for PropResult
Source§fn clone(&self) -> PropResult
fn clone(&self) -> PropResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl IsFalsified for PropResult
impl IsFalsified for PropResult
fn is_falsified(&self) -> bool
fn non_falsified(&self) -> bool
Auto Trait Implementations§
impl Freeze for PropResult
impl RefUnwindSafe for PropResult
impl Send for PropResult
impl Sync for PropResult
impl Unpin for PropResult
impl UnwindSafe for PropResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more