Struct rspec::example_result::ExampleResult
[−]
[src]
pub struct ExampleResult(_);
Methods
impl ExampleResult
[src]
fn res(&self) -> Result<(), ()>
fn is_err(&self) -> bool
fn is_ok(&self) -> bool
fn or<T: Into<ExampleResult>>(self, other: T) -> ExampleResult
Trait Implementations
impl Debug for ExampleResult
[src]
impl Copy for ExampleResult
[src]
impl Clone for ExampleResult
[src]
fn clone(&self) -> ExampleResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for ExampleResult
[src]
fn eq(&self, __arg_0: &ExampleResult) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ExampleResult) -> bool
This method tests for !=
.
impl Eq for ExampleResult
[src]
impl From<()> for ExampleResult
[src]
fn from(_other: ()) -> ExampleResult
Performs the conversion.
impl From<bool> for ExampleResult
[src]
fn from(other: bool) -> ExampleResult
Performs the conversion.
impl<T1, T2> From<Result<T1, T2>> for ExampleResult
[src]
fn from(other: Result<T1, T2>) -> ExampleResult
Performs the conversion.