Struct serde_cbor::ser::SliceWrite [−][src]
pub struct SliceWrite<'a> { /* fields omitted */ }
Expand description
Implements Write
for mutable byte slices (&mut [u8]
).
Returns an error if the value to serialize is too large to fit in the slice.
Implementations
Wraps a mutable slice so it can be used as a Write
.
Returns the number of bytes written to the underlying slice.
Returns the underlying slice.