pub struct Captured { /* private fields */ }Available on crate feature
view only.Expand description
A rendered result that has not been written: its text, the stream it belongs on, and its exit code.
View::capture returns one. View::show writes it. Tests and
alternate transports read it directly.
Implementations§
Source§impl Captured
impl Captured
Sourcepub const fn stream(&self) -> Destination
pub const fn stream(&self) -> Destination
The stream the text belongs on.
Sourcepub fn bytes(&self) -> &[u8] ⓘ
pub fn bytes(&self) -> &[u8] ⓘ
The rendered text as UTF-8 bytes. It is empty when the stream is
Destination::None.
Trait Implementations§
impl Eq for Captured
impl StructuralPartialEq for Captured
Auto Trait Implementations§
impl Forget for Captured
impl Freeze for Captured
impl Move for Captured
impl RefUnwindSafe for Captured
impl Send for Captured
impl Sync for Captured
impl Unpin for Captured
impl UnsafeUnpin for Captured
impl UnwindSafe for Captured
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