[][src]Struct fluid::core::should::ShouldImpl

pub struct ShouldImpl<L> where
    L: Debug
{ pub left: Option<L>, // some fields omitted }

The inner should implementation, not intended to be used by the final user.

Fields

left: Option<L>

The left part of the assertion.

Methods

impl<L> ShouldImpl<L> where
    L: Debug
[src]

pub fn map_left<T: Debug, F>(self, f: F) -> ShouldImpl<T> where
    F: FnOnce(L) -> Option<T>, 
[src]

Creates a new ShouldImpl by applicating the passed closure to the left element.

pub fn truthness(&self) -> bool[src]

Returns wether the assertion should be true or not.

pub fn left_dbg(&self) -> &str[src]

Returns a debug reptresentation of the left element.

pub fn stringified(&self) -> Option<String>[src]

Returns a stringified representation of the left element.

pub fn add_message(&mut self, message: String)[src]

Adds a new explanation message to the assertion. Must be used through the ConsumingAssert::because or the ChainableAssert::because method.

Trait Implementations

impl<L> From<ShouldImpl<L>> for Should<L> where
    L: Debug
[src]

impl<L> From<Should<L>> for ShouldImpl<L> where
    L: Debug
[src]

impl<'a, L> From<&'a mut Should<L>> for &'a mut ShouldImpl<L> where
    L: Debug
[src]

impl<L> Default for ShouldImpl<L> where
    L: Debug
[src]

impl<L: Debug> Debug for ShouldImpl<L> where
    L: Debug
[src]

Auto Trait Implementations

impl<L> Send for ShouldImpl<L> where
    L: Send

impl<L> Sync for ShouldImpl<L> where
    L: Sync

Blanket Implementations

impl<L> ShouldExtension for L where
    L: Debug
[src]

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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