pub struct BufferSink { /* private fields */ }
Expand description
BufferSink
saves its output in a buffer and can verify it against expected output.
Implementations§
Source§impl BufferSink
impl BufferSink
Sourcepub fn new(data: Rc<RefCell<Vec<u8>>>) -> Self
pub fn new(data: Rc<RefCell<Vec<u8>>>) -> Self
.Creates a BufferSink
.
This object will write into the shared data
vector. When running tests, users may
optional set the FFX_FUZZ_TEST_ECHO_OUTPUT environment variable, which will cause this
object to copy anything written to it to standard output.
Trait Implementations§
Source§impl Clone for BufferSink
impl Clone for BufferSink
Source§impl Debug for BufferSink
impl Debug for BufferSink
Auto Trait Implementations§
impl Freeze for BufferSink
impl !RefUnwindSafe for BufferSink
impl !Send for BufferSink
impl !Sync for BufferSink
impl Unpin for BufferSink
impl !UnwindSafe for BufferSink
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)