Macro serde::ser::impls::serialize_display_bounded_length
source ยท macro_rules! serialize_display_bounded_length { ($value:expr, $max:expr, $serializer:expr) => { ... }; }
Expand description
Serialize a value that implements Display
as a string, when that string is
statically known to never have more than a constant MAX_LEN
bytes.
Panics if the Display
impl tries to write more than MAX_LEN
bytes.