Struct kitten::Test[][src]

pub struct Test<TRESULT, SUT> {
    pub system_under_test: Option<SUT>,
    pub result: Option<TRESULT>,
}

Fields

system_under_test: Option<SUT>result: Option<TRESULT>

Implementations

impl<TRESULT, SUT> Test<TRESULT, SUT>[src]

pub fn scenario() -> Self[src]

Trait Implementations

impl<TRESULT, SUT> GWT<TRESULT, SUT> for Test<TRESULT, SUT>[src]

fn given(self, function: fn() -> SUT) -> Self[src]

fn and_given(self, function: fn() -> SUT) -> Self[src]

fn when(self, function: fn(_: &SUT) -> TRESULT) -> Self[src]

fn then(self, function: fn(_: &TRESULT) -> &TRESULT) -> Self[src]

fn and(self, function: fn(_: &TRESULT) -> &TRESULT) -> Self[src]

Auto Trait Implementations

impl<TRESULT, SUT> RefUnwindSafe for Test<TRESULT, SUT> where
    SUT: RefUnwindSafe,
    TRESULT: RefUnwindSafe

impl<TRESULT, SUT> Send for Test<TRESULT, SUT> where
    SUT: Send,
    TRESULT: Send

impl<TRESULT, SUT> Sync for Test<TRESULT, SUT> where
    SUT: Sync,
    TRESULT: Sync

impl<TRESULT, SUT> Unpin for Test<TRESULT, SUT> where
    SUT: Unpin,
    TRESULT: Unpin

impl<TRESULT, SUT> UnwindSafe for Test<TRESULT, SUT> where
    SUT: UnwindSafe,
    TRESULT: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.