Struct drt_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, T1, T2> TopDecodeMulti for MultiValue3<T0, T1, T2>
impl<T0, T1, T2> TopDecodeMulti for MultiValue3<T0, T1, T2>
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>
impl<T0, T1, T2> TopDecodeMultiLength for MultiValue3<T0, T1, T2>
source§impl<T0, T1, T2> TopEncodeMulti for MultiValue3<T0, T1, T2>
impl<T0, T1, T2> TopEncodeMulti for MultiValue3<T0, T1, T2>
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> Freeze for MultiValue3<T0, T1, T2>
impl<T0, T1, T2> RefUnwindSafe for MultiValue3<T0, T1, T2>
impl<T0, T1, T2> Send for MultiValue3<T0, T1, T2>
impl<T0, T1, T2> Sync for MultiValue3<T0, T1, T2>
impl<T0, T1, T2> Unpin for MultiValue3<T0, T1, T2>
impl<T0, T1, T2> UnwindSafe for MultiValue3<T0, T1, T2>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)