Struct measureme::SerializationSink[][src]

pub struct SerializationSink { /* fields omitted */ }

Implementations

Creates a copy of all data written so far. This method is meant to be used for writing unit tests. It will panic if the underlying BackingStorage is a file.

Atomically writes num_bytes of data to this SerializationSink. Atomic means the data is guaranteed to be written as a contiguous range of bytes.

The buffer provided to the write callback is guaranteed to be of size num_bytes and write is supposed to completely fill it with the data to be written.

The return value is the address of the data written and can be used to refer to the data later on.

Atomically writes the data in bytes to this SerializationSink. Atomic means the data is guaranteed to be written as a contiguous range of bytes.

This method may perform better than write_atomic because it may be able to skip the sink’s internal buffer. Use this method if the data to be written is already available as a &[u8].

The return value is the address of the data written and can be used to refer to the data later on.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.