pub fn deserialize_bigint_from_bytes<'de, D, F, T>(
deserializer: D,
from_bytes: F,
) -> Result<(bool, T), D::Error>
Available on crate feature
unstable-enable
only.Expand description
Deserializes a 2-element tuple, consisting of a sign bit and a list of bytes
in little endian order to represent a number.
The list of bytes is converted into a T
by the given closure, and the resulting
tuple is returned.
The main difference between using this function and <(bool, &serde_bytes::Bytes)>::deserialize
is that this function can accept a byte array with a shorter lifetime.
ยงAvailability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.