pub fn serialize<S>(value: &BigUint, serializer: S) -> Result<S::Ok, S::Error>
where
    S: Serializer,
{
    let bytes = value.to_bytes_be();
    let base64 = BASE64URL_NOPAD.encode(bytes.as_slice());
    serializer.serialize_str(&base64)
}
/// Serialize a `BigUint` into Base64 URL encoded big endian bytes
Serialize a `BigUint` into Base64 URL encoded big endian bytes
Serialize a ` BigUint ` into Base64 URL encoded big endian bytes
pub fn serialize<S>(value: &BigUint, serializer: S) -> Result<S::Ok, S::Error>
where
    S: Serializer,
{
    let bytes = value.to_bytes_be();
    let base64 = BASE64URL_NOPAD.encode(bytes.as_slice());
    serializer.serialize_str(&base64)
}
pub fn serialize < S > ( value : & BigUint , serializer : S ) -> Result < S :: Ok , S :: Error > where S : Serializer , { let bytes = value . to_bytes_be ( ) ; let base64 = BASE64URL_NOPAD . encode ( bytes . as_slice ( ) ) ; serializer . serialize_str ( & base64 ) }
Serialize a `BigUint` into Base64 URL encoded big endian bytes
Serialize a ` BigUint ` into Base64 URL encoded big endian bytes
value
&BigUint
serializer
S
value
&BigUint
serializer
S