Struct ensc_testsuite::util::result::Result[][src]

pub struct Result<T> { /* fields omitted */ }
Expand description

Result of a testcase.

This includes both the returned value of the testcase and the status.

Example

let result = PlanRunner::new().ok("test", || Result::<_,()>::Ok(42));

assert!(result.is_ok());
assert_eq!(result.as_status(), TestStatus::Pass);
assert_eq!(result.into_value(), Some(Ok(42)));

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.