Struct dharitri_wasm::io::dyn_arg_input_cd::CallDataArgLoader
source · pub struct CallDataArgLoader<'a, SE>where
SE: ErrorApi,{ /* private fields */ }Implementations§
source§impl<'a, SE> CallDataArgLoader<'a, SE>where
SE: ErrorApi,
impl<'a, SE> CallDataArgLoader<'a, SE>where
SE: ErrorApi,
pub fn new(deser: HexCallDataDeserializer<'a>, signal_error: SE) -> Self
Trait Implementations§
source§impl<'a, SE> DynArgInput<Vec<u8>> for CallDataArgLoader<'a, SE>where
SE: ErrorApi,
impl<'a, SE> DynArgInput<Vec<u8>> for CallDataArgLoader<'a, SE>where
SE: ErrorApi,
source§fn next_arg_input(&mut self) -> Vec<u8>
fn next_arg_input(&mut self) -> Vec<u8>
Retrieves an input for deserializing an argument.
If the loader is out of arguments, it will crash by itself with an appropriate error,
without returning.
Use if the next argument is optional, use
has_next beforehand.source§fn assert_no_more_args(&self)
fn assert_no_more_args(&self)
Called after retrieving all arguments to validate that extra arguments were not provided.
source§impl<'a, SE> ErrorApi for CallDataArgLoader<'a, SE>where
SE: ErrorApi,
impl<'a, SE> ErrorApi for CallDataArgLoader<'a, SE>where
SE: ErrorApi,
fn signal_error(&self, message: &[u8]) -> !
Auto Trait Implementations§
impl<'a, SE> RefUnwindSafe for CallDataArgLoader<'a, SE>where
SE: RefUnwindSafe,
impl<'a, SE> Send for CallDataArgLoader<'a, SE>where
SE: Send,
impl<'a, SE> Sync for CallDataArgLoader<'a, SE>where
SE: Sync,
impl<'a, SE> Unpin for CallDataArgLoader<'a, SE>where
SE: Unpin,
impl<'a, SE> UnwindSafe for CallDataArgLoader<'a, SE>where
SE: 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