pub struct ShouldImpl<L>where
L: Debug,{
pub left: Option<L>,
/* private fields */
}Expand description
The inner should implementation, not intended to be used by the final user.
Fields§
§left: Option<L>The left part of the assertion.
Implementations§
Source§impl<L> ShouldImpl<L>where
L: Debug,
impl<L> ShouldImpl<L>where
L: Debug,
Sourcepub fn map_left<T: Debug, F>(self, f: F) -> ShouldImpl<T>
pub fn map_left<T: Debug, F>(self, f: F) -> ShouldImpl<T>
Creates a new ShouldImpl by applicating the passed closure to the
left element.
Sourcepub fn stringified(&self) -> Option<String>
pub fn stringified(&self) -> Option<String>
Returns a stringified representation of the left element.
Sourcepub fn add_message(&mut self, message: String)
pub fn add_message(&mut self, message: String)
Adds a new explanation message to the assertion. Must be used through
the ConsumingAssert::because or the ChainableAssert::because method.
Trait Implementations§
Source§impl<L> Debug for ShouldImpl<L>
impl<L> Debug for ShouldImpl<L>
Source§impl<L> Default for ShouldImpl<L>where
L: Debug,
impl<L> Default for ShouldImpl<L>where
L: Debug,
Source§impl<L> From<ShouldImpl<L>> for Should<L>where
L: Debug,
impl<L> From<ShouldImpl<L>> for Should<L>where
L: Debug,
Source§fn from(implem: ShouldImpl<L>) -> Self
fn from(implem: ShouldImpl<L>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<L> Freeze for ShouldImpl<L>
impl<L> RefUnwindSafe for ShouldImpl<L>where
Option<L>: RefUnwindSafe,
impl<L> Send for ShouldImpl<L>
impl<L> Sync for ShouldImpl<L>
impl<L> Unpin for ShouldImpl<L>
impl<L> UnsafeUnpin for ShouldImpl<L>where
Option<L>: UnsafeUnpin,
impl<L> UnwindSafe for ShouldImpl<L>where
Option<L>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more