pub struct InMemoryIo<'s>(pub &'s mut String);Expand description
An IO implementation that just writes to a string. The futures produced from methods like IoOutput::write are complete instantly, and no errors are produced.
Tuple Fields§
§0: &'s mut StringTrait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for InMemoryIo<'s>
impl<'s> RefUnwindSafe for InMemoryIo<'s>
impl<'s> Send for InMemoryIo<'s>
impl<'s> Sync for InMemoryIo<'s>
impl<'s> Unpin for InMemoryIo<'s>
impl<'s> !UnwindSafe for InMemoryIo<'s>
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