buf.len
link
This commit is contained in:
parent
552dd7586f
commit
9457d4187a
@ -3,7 +3,9 @@
|
|||||||
///
|
///
|
||||||
/// See [`Serializable`].
|
/// See [`Serializable`].
|
||||||
pub trait Serializer {
|
pub trait Serializer {
|
||||||
/// Writes bytes from a slice. Should advance value of [`Serializer::tell()`] by `buf.len()`.
|
/// Writes bytes from a slice. Should advance value of [`Serializer::tell()`] by [`buf.len`].
|
||||||
|
///
|
||||||
|
/// [`buf.len`]: slice::len
|
||||||
fn write(&mut self, buf: &[u8]);
|
fn write(&mut self, buf: &[u8]);
|
||||||
/// Current position of the stream. Used by [`CheckedSerialize`].
|
/// Current position of the stream. Used by [`CheckedSerialize`].
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user