pub struct ManagedResultArgLoader<A>where
A: ManagedTypeApi + ErrorApi,{ /* private fields */ }
Implementations§
Source§impl<A> ManagedResultArgLoader<A>where
A: ManagedTypeApi + ErrorApi,
impl<A> ManagedResultArgLoader<A>where
A: ManagedTypeApi + ErrorApi,
pub fn new(data: ManagedVec<A, ManagedBuffer<A>>) -> Self
Trait Implementations§
Source§impl<A> TopDecodeMultiInput for ManagedResultArgLoader<A>where
A: ManagedTypeApi + ErrorApi,
impl<A> TopDecodeMultiInput for ManagedResultArgLoader<A>where
A: ManagedTypeApi + ErrorApi,
type ValueInput = ManagedBuffer<A>
Source§fn next_value_input<H>(
&mut self,
h: H,
) -> Result<Self::ValueInput, H::HandledErr>where
H: DecodeErrorHandler,
fn next_value_input<H>(
&mut self,
h: H,
) -> Result<Self::ValueInput, H::HandledErr>where
H: DecodeErrorHandler,
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.fn next_value<T, H>(
&mut self,
h: H,
) -> Result<T, <H as DecodeErrorHandler>::HandledErr>where
T: TopDecode,
H: DecodeErrorHandler,
Source§fn assert_no_more_args<H>(
&self,
h: H,
) -> Result<(), <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
fn assert_no_more_args<H>(
&self,
h: H,
) -> Result<(), <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
Called after retrieving all arguments to validate that extra arguments were not provided.
Source§fn flush_ignore<H>(
&mut self,
h: H,
) -> Result<(), <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
fn flush_ignore<H>(
&mut self,
h: H,
) -> Result<(), <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
Consumes all inputs and ignores them.
After executing this, assert_no_more_args should not fail.
Auto Trait Implementations§
impl<A> Freeze for ManagedResultArgLoader<A>
impl<A> RefUnwindSafe for ManagedResultArgLoader<A>
impl<A> Send for ManagedResultArgLoader<A>
impl<A> Sync for ManagedResultArgLoader<A>
impl<A> Unpin for ManagedResultArgLoader<A>
impl<A> UnwindSafe for ManagedResultArgLoader<A>
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