mirror of
https://github.com/serde-rs/serde.git
synced 2025-10-01 23:11:18 +00:00
Restore serialize_seq_fixed_size
This commit is contained in:
parent
9217517532
commit
2e4cc0b443
@ -214,6 +214,15 @@ pub trait Serializer {
|
|||||||
state: Self::SeqState,
|
state: Self::SeqState,
|
||||||
) -> Result<(), Self::Error>;
|
) -> Result<(), Self::Error>;
|
||||||
|
|
||||||
|
/// Begins to serialize a sequence whose length will be known at
|
||||||
|
/// deserialization time. This call must be followed by zero or more calls
|
||||||
|
/// to `serialize_seq_elt`, then a call to `serialize_seq_end`. A reasonable
|
||||||
|
/// implementation would be to forward to `serialize_seq`.
|
||||||
|
fn serialize_seq_fixed_size(
|
||||||
|
&mut self,
|
||||||
|
size: usize,
|
||||||
|
) -> Result<Self::SeqState, Self::Error>;
|
||||||
|
|
||||||
/// Begins to serialize a tuple. This call must be followed by zero or more
|
/// Begins to serialize a tuple. This call must be followed by zero or more
|
||||||
/// calls to `serialize_tuple_elt`, then a call to `serialize_tuple_end`. A
|
/// calls to `serialize_tuple_elt`, then a call to `serialize_tuple_end`. A
|
||||||
/// reasonable implementation would be to forward to `serialize_seq`.
|
/// reasonable implementation would be to forward to `serialize_seq`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user