pub struct EvmDataWriter { /* private fields */ }Expand description
Help build an EVM input/output data.
Implementations§
Source§impl EvmDataWriter
impl EvmDataWriter
Sourcepub fn write_raw_bytes(self, value: &[u8]) -> Self
pub fn write_raw_bytes(self, value: &[u8]) -> Self
Write arbitrary bytes.
Doesn’t handle any alignement checks, prefer using write instead if possible.
Sourcepub fn write_selector<T: Into<u32>>(self, value: T) -> Self
pub fn write_selector<T: Into<u32>>(self, value: T) -> Self
Write a selector.
The provided type must impl Into<u32>.
Doesn’t handle any alignement checks, should be used only when adding the initial
selector of a Solidity call data.
Trait Implementations§
Source§impl Clone for EvmDataWriter
impl Clone for EvmDataWriter
Source§fn clone(&self) -> EvmDataWriter
fn clone(&self) -> EvmDataWriter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EvmDataWriter
impl Debug for EvmDataWriter
Auto Trait Implementations§
impl Freeze for EvmDataWriter
impl RefUnwindSafe for EvmDataWriter
impl Send for EvmDataWriter
impl Sync for EvmDataWriter
impl Unpin for EvmDataWriter
impl UnwindSafe for EvmDataWriter
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