pub struct PrintCapture { /* private fields */ }Expand description
Captures Print output on the current thread while it lives. Captures
nest: dropping one restores the enclosing capture, whose lines are kept.
Implementations§
Trait Implementations§
Source§impl Debug for PrintCapture
impl Debug for PrintCapture
Source§impl Drop for PrintCapture
impl Drop for PrintCapture
Auto Trait Implementations§
impl !Send for PrintCapture
impl !Sync for PrintCapture
impl Forget for PrintCapture
impl Freeze for PrintCapture
impl Move for PrintCapture
impl RefUnwindSafe for PrintCapture
impl Unpin for PrintCapture
impl UnsafeUnpin for PrintCapture
impl UnwindSafe for PrintCapture
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