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
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)