[−][src]Struct fluid::core::should::ShouldImpl
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]
L: Debug,
pub fn map_left<T: Debug, F>(self, f: F) -> ShouldImpl<T> where
F: FnOnce(L) -> Option<T>,
[src]
F: FnOnce(L) -> Option<T>,
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]
L: Debug,
fn from(implem: ShouldImpl<L>) -> Self
[src]
impl<L> From<Should<L>> for ShouldImpl<L> where
L: Debug,
[src]
L: Debug,
impl<'a, L> From<&'a mut Should<L>> for &'a mut ShouldImpl<L> where
L: Debug,
[src]
L: Debug,
impl<L> Default for ShouldImpl<L> where
L: Debug,
[src]
L: Debug,
impl<L: Debug> Debug for ShouldImpl<L> where
L: Debug,
[src]
L: Debug,
Auto Trait Implementations
impl<L> Send for ShouldImpl<L> where
L: Send,
L: Send,
impl<L> Sync for ShouldImpl<L> where
L: Sync,
L: Sync,
Blanket Implementations
impl<L> ShouldExtension for L where
L: Debug,
[src]
L: Debug,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,