buf.len link

This commit is contained in:
AF 2023-07-30 11:38:43 +00:00
parent 552dd7586f
commit 9457d4187a

View File

@ -3,7 +3,9 @@
///
/// See [`Serializable`].
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]);
/// Current position of the stream. Used by [`CheckedSerialize`].
///