We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5add84 commit 4303a6dCopy full SHA for 4303a6d
measureme/src/serialization.rs
@@ -21,6 +21,10 @@ pub struct SerializationSink {
21
22
/// The `BackingStorage` is what the data gets written to.
23
trait BackingStorage: Write + Send + Debug {
24
+ /// Moves all data written so far out into a `Vec<u8>`. This method only
25
+ /// exists so we can write unit tests that don't need to touch the
26
+ /// file system. The method is allowed to unconditionally panic for
27
+ /// non-test implementations.
28
fn drain_bytes(&mut self) -> Vec<u8>;
29
}
30
0 commit comments