pub fn serialize<S, T>(data: T, serializer: S) -> Result<S::Ok, S::Error>Available on crate feature
serde only.Expand description
Serializes a byte view using this module’s prefix and case policy.
Reads AsRef::as_ref once and sends a string to every serializer.
Allocation behavior matches crate::serialize.
§Errors
Returns an error if serialization fails or the encoded length overflows.
§Panics
Panics if temporary output storage would exceed isize::MAX bytes.
§Examples
See the module example.