pub struct SolidityABI<T>(/* private fields */);Implementations§
Source§impl<T> SolidityABI<T>
impl<T> SolidityABI<T>
pub fn is_dynamic() -> bool
pub fn encode( value: &T, buf: &mut BytesMut, offset: usize, ) -> Result<(), CodecError>
pub fn decode(buf: &impl Buf, offset: usize) -> Result<T, CodecError>
pub fn partial_decode( buf: &impl Buf, offset: usize, ) -> Result<(usize, usize), CodecError>
pub fn size_hint(value: &T) -> usize
Source§impl<T> SolidityABI<T>
impl<T> SolidityABI<T>
pub fn encode_function_args(
value: &T,
buf: &mut BytesMut,
) -> Result<(), CodecError>where
T: FunctionArgs<BE, 32, true, false>,
pub fn decode_function_args(buf: &impl Buf) -> Result<T, CodecError>where
T: FunctionArgs<BE, 32, true, false>,
Auto Trait Implementations§
impl<T> Freeze for SolidityABI<T>
impl<T> RefUnwindSafe for SolidityABI<T>where
T: RefUnwindSafe,
impl<T> Send for SolidityABI<T>where
T: Send,
impl<T> Sync for SolidityABI<T>where
T: Sync,
impl<T> Unpin for SolidityABI<T>where
T: Unpin,
impl<T> UnsafeUnpin for SolidityABI<T>
impl<T> UnwindSafe for SolidityABI<T>where
T: UnwindSafe,
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