pub struct HexCallDataSerializer(/* private fields */);Expand description
Serializes to Dharitri’s smart contract call format.
This format consists of the function name, followed by ‘@’, follwed by hex-encoded argument bytes separated by ‘@’ characters. Example: “funcName@00000@aaaa@1234@@”. Arguments can be empty, in which case no hex digits are emitted. Argument hex encodings will always have an even number of digits.
HexCallDataSerializer owns its output.
Converting from whatever type the argument to bytes is not in scope. Use the serializer module for that.
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HexCallDataSerializer
impl Send for HexCallDataSerializer
impl Sync for HexCallDataSerializer
impl Unpin for HexCallDataSerializer
impl UnwindSafe for HexCallDataSerializer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more