pub struct TurnCheck<'a> { /* private fields */ }Expand description
Assertions on a completed turn. Each returns Result<Self> so they chain
with ?.
Implementations§
Source§impl<'a> TurnCheck<'a>
impl<'a> TurnCheck<'a>
pub fn called_tool(self, name: &str) -> Result<Self>
pub fn did_not_call(self, name: &str) -> Result<Self>
pub fn asked_approval(self, tool: &str) -> Result<Self>
Sourcepub fn reply_contains(self, needle: &str) -> Result<Self>
pub fn reply_contains(self, needle: &str) -> Result<Self>
Case-insensitive substring match on the reply.
pub fn reply(&self) -> &'a str
Auto Trait Implementations§
impl<'a> Freeze for TurnCheck<'a>
impl<'a> RefUnwindSafe for TurnCheck<'a>
impl<'a> Send for TurnCheck<'a>
impl<'a> Sync for TurnCheck<'a>
impl<'a> Unpin for TurnCheck<'a>
impl<'a> UnsafeUnpin for TurnCheck<'a>
impl<'a> UnwindSafe for TurnCheck<'a>
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