reth::rpc::types::serde_helpers::quantity

Function serialize

pub fn serialize<T, S>(
    value: &T,
    serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where T: ConvertRuint, S: Serializer,
Expand description

Serializes a primitive number as a “quantity” hex string.