Struct multiversx_sc_codec::multi_types::MultiValue3
source · pub struct MultiValue3<T0, T1, T2>(pub (T0, T1, T2));Tuple Fields§
§0: (T0, T1, T2)Implementations§
source§impl<T0, T1, T2> MultiValue3<T0, T1, T2>
impl<T0, T1, T2> MultiValue3<T0, T1, T2>
pub fn into_tuple(self) -> (T0, T1, T2)
Trait Implementations§
source§impl<T0: Clone, T1: Clone, T2: Clone> Clone for MultiValue3<T0, T1, T2>
impl<T0: Clone, T1: Clone, T2: Clone> Clone for MultiValue3<T0, T1, T2>
source§fn clone(&self) -> MultiValue3<T0, T1, T2>
fn clone(&self) -> MultiValue3<T0, T1, T2>
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<T0, T1, T2> From<(T0, T1, T2)> for MultiValue3<T0, T1, T2>
impl<T0, T1, T2> From<(T0, T1, T2)> for MultiValue3<T0, T1, T2>
source§fn from(tuple: (T0, T1, T2)) -> Self
fn from(tuple: (T0, T1, T2)) -> Self
Converts to this type from the input type.
source§impl<T0: PartialEq, T1: PartialEq, T2: PartialEq> PartialEq<MultiValue3<T0, T1, T2>> for MultiValue3<T0, T1, T2>
impl<T0: PartialEq, T1: PartialEq, T2: PartialEq> PartialEq<MultiValue3<T0, T1, T2>> for MultiValue3<T0, T1, T2>
source§fn eq(&self, other: &MultiValue3<T0, T1, T2>) -> bool
fn eq(&self, other: &MultiValue3<T0, T1, T2>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<T0, T1, T2> TopDecodeMulti for MultiValue3<T0, T1, T2>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
impl<T0, T1, T2> TopDecodeMulti for MultiValue3<T0, T1, T2>where T0: TopDecodeMulti, T1: TopDecodeMulti, T2: TopDecodeMulti,
fn multi_decode_or_handle_err<I, H>( input: &mut I, h: H ) -> Result<Self, H::HandledErr>where I: TopDecodeMultiInput, H: DecodeErrorHandler,
source§const IS_SINGLE_VALUE: bool = false
const IS_SINGLE_VALUE: bool = false
Used to optimize single value loading of endpoint arguments.
fn multi_decode<I>(input: &mut I) -> Result<Self, DecodeError>where I: TopDecodeMultiInput,
source§impl<T0, T1, T2> TopDecodeMultiLength for MultiValue3<T0, T1, T2>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
impl<T0, T1, T2> TopDecodeMultiLength for MultiValue3<T0, T1, T2>where T0: TopDecodeMulti, T1: TopDecodeMulti, T2: TopDecodeMulti,
source§impl<T0, T1, T2> TopEncodeMulti for MultiValue3<T0, T1, T2>where
T0: TopEncodeMulti,
T1: TopEncodeMulti,
T2: TopEncodeMulti,
impl<T0, T1, T2> TopEncodeMulti for MultiValue3<T0, T1, T2>where T0: TopEncodeMulti, T1: TopEncodeMulti, T2: TopEncodeMulti,
source§fn multi_encode_or_handle_err<O, H>(
&self,
output: &mut O,
h: H
) -> Result<(), H::HandledErr>where
O: TopEncodeMultiOutput,
H: EncodeErrorHandler,
fn multi_encode_or_handle_err<O, H>( &self, output: &mut O, h: H ) -> Result<(), H::HandledErr>where O: TopEncodeMultiOutput, H: EncodeErrorHandler,
Version of
top_encode that can handle errors as soon as they occur.
For instance in can exit immediately and make sure that if it returns, it is a success.
By not deferring error handling, this can lead to somewhat smaller bytecode.source§fn multi_encode<O>(&self, output: &mut O) -> Result<(), EncodeError>where
O: TopEncodeMultiOutput,
fn multi_encode<O>(&self, output: &mut O) -> Result<(), EncodeError>where O: TopEncodeMultiOutput,
Attempt to serialize the value to ouput.
impl<T0, T1, T2> StructuralPartialEq for MultiValue3<T0, T1, T2>
Auto Trait Implementations§
impl<T0, T1, T2> CodecFromSelf for MultiValue3<T0, T1, T2>where T0: CodecFromSelf, T1: CodecFromSelf, T2: CodecFromSelf,
impl<T0, T1, T2> RefUnwindSafe for MultiValue3<T0, T1, T2>where T0: RefUnwindSafe, T1: RefUnwindSafe, T2: RefUnwindSafe,
impl<T0, T1, T2> Send for MultiValue3<T0, T1, T2>where T0: Send, T1: Send, T2: Send,
impl<T0, T1, T2> Sync for MultiValue3<T0, T1, T2>where T0: Sync, T1: Sync, T2: Sync,
impl<T0, T1, T2> Unpin for MultiValue3<T0, T1, T2>where T0: Unpin, T1: Unpin, T2: Unpin,
impl<T0, T1, T2> UnwindSafe for MultiValue3<T0, T1, T2>where T0: UnwindSafe, T1: UnwindSafe, T2: 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