Struct alloy_dyn_abi::DynSolReturns
source · pub struct DynSolReturns(/* private fields */);
Expand description
A representation of a Solidity call’s returns.
Implementations§
source§impl DynSolReturns
impl DynSolReturns
sourcepub const fn new(types: Vec<DynSolType>) -> Self
pub const fn new(types: Vec<DynSolType>) -> Self
Create a new DynSolReturns
with the given types.
sourcepub fn types(&self) -> &[DynSolType]
pub fn types(&self) -> &[DynSolType]
Get the types of the returns.
sourcepub fn abi_encode_output(&self, values: &[DynSolValue]) -> Result<Vec<u8>>
pub fn abi_encode_output(&self, values: &[DynSolValue]) -> Result<Vec<u8>>
ABI encode the given values as function return values.
sourcepub fn abi_decode_output(
&self,
data: &[u8],
validate: bool,
) -> Result<Vec<DynSolValue>>
pub fn abi_decode_output( &self, data: &[u8], validate: bool, ) -> Result<Vec<DynSolValue>>
ABI decode the given data as function return values.
Trait Implementations§
source§impl Clone for DynSolReturns
impl Clone for DynSolReturns
source§fn clone(&self) -> DynSolReturns
fn clone(&self) -> DynSolReturns
Returns a copy 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 DynSolReturns
impl Debug for DynSolReturns
source§impl From<DynSolReturns> for Vec<DynSolType>
impl From<DynSolReturns> for Vec<DynSolType>
source§fn from(returns: DynSolReturns) -> Self
fn from(returns: DynSolReturns) -> Self
Converts to this type from the input type.
source§impl From<Vec<DynSolType>> for DynSolReturns
impl From<Vec<DynSolType>> for DynSolReturns
source§fn from(types: Vec<DynSolType>) -> Self
fn from(types: Vec<DynSolType>) -> Self
Converts to this type from the input type.
source§impl PartialEq for DynSolReturns
impl PartialEq for DynSolReturns
source§fn eq(&self, other: &DynSolReturns) -> bool
fn eq(&self, other: &DynSolReturns) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DynSolReturns
impl StructuralPartialEq for DynSolReturns
Auto Trait Implementations§
impl Freeze for DynSolReturns
impl RefUnwindSafe for DynSolReturns
impl Send for DynSolReturns
impl Sync for DynSolReturns
impl Unpin for DynSolReturns
impl UnwindSafe for DynSolReturns
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.