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>>) -> ManagedResultArgLoader<A>
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<<ManagedResultArgLoader<A> as TopDecodeMultiInput>::ValueInput, <H as DecodeErrorHandler>::HandledErr>where
H: DecodeErrorHandler,
fn next_value_input<H>(
&mut self,
h: H,
) -> Result<<ManagedResultArgLoader<A> as TopDecodeMultiInput>::ValueInput, <H as DecodeErrorHandler>::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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more