pub struct ManagedAddress<M: ManagedTypeApi> { /* private fields */ }
Implementations§
Source§impl<M> ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> ManagedAddress<M>where
M: ManagedTypeApi,
pub fn from_address(address: &Address) -> Self
pub fn zero() -> Self
pub fn to_address(&self) -> Address
pub fn is_zero(&self) -> bool
pub fn new_from_bytes(bytes: &[u8; 32]) -> Self
Sourcepub unsafe fn new_uninit() -> Self
pub unsafe fn new_uninit() -> Self
Creates a new object, without initializing it.
§Safety
The value needs to be initialized after creation, otherwise the VM will halt the first time the value is attempted to be read.
Sourcepub unsafe fn temp_const_ref(
raw_handle: RawHandle,
) -> ManagedRef<'static, M, ManagedAddress<M>>
pub unsafe fn temp_const_ref( raw_handle: RawHandle, ) -> ManagedRef<'static, M, ManagedAddress<M>>
Creates a shared managed reference to a given raw handle.
§Safety
The reference points to a shared value. Make sure the handle is not leaked.
pub fn as_managed_buffer(&self) -> &ManagedBuffer<M>
pub fn as_managed_byte_array(&self) -> &ManagedByteArray<M, 32>
pub fn to_byte_array(&self) -> [u8; 32]
Source§impl<M: ManagedTypeApi> ManagedAddress<M>
impl<M: ManagedTypeApi> ManagedAddress<M>
pub fn hex_expr(&self) -> ManagedBuffer<M>
Trait Implementations§
Source§impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for &Addresswhere
Env: TxEnv,
impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for &Addresswhere
Env: TxEnv,
fn annotation(&self, _env: &Env) -> ManagedBuffer<Env::Api>
Source§fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn into_value(self, env: &Env) -> T
fn into_value(self, env: &Env) -> T
Consumes annotated value to produce actual value. Read more
Source§impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for &ManagedAddress<Env::Api>where
Env: TxEnv,
impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for &ManagedAddress<Env::Api>where
Env: TxEnv,
fn annotation(&self, _env: &Env) -> ManagedBuffer<Env::Api>
Source§fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn into_value(self, _env: &Env) -> ManagedAddress<Env::Api>
fn into_value(self, _env: &Env) -> ManagedAddress<Env::Api>
Consumes annotated value to produce actual value. Read more
Source§fn with_value_ref<F, R>(&self, _env: &Env, f: F) -> R
fn with_value_ref<F, R>(&self, _env: &Env, f: F) -> R
Can be used when working with references only. Read more
Source§impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for Addresswhere
Env: TxEnv,
impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for Addresswhere
Env: TxEnv,
fn annotation(&self, _env: &Env) -> ManagedBuffer<Env::Api>
Source§fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn into_value(self, env: &Env) -> T
fn into_value(self, env: &Env) -> T
Consumes annotated value to produce actual value. Read more
Source§impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for ESDTSystemSCAddresswhere
Env: TxEnv,
impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for ESDTSystemSCAddresswhere
Env: TxEnv,
fn annotation(&self, _env: &Env) -> ManagedBuffer<Env::Api>
Source§fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn into_value(self, env: &Env) -> T
fn into_value(self, env: &Env) -> T
Consumes annotated value to produce actual value. Read more
Source§impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for ManagedAddress<Env::Api>where
Env: TxEnv,
impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for ManagedAddress<Env::Api>where
Env: TxEnv,
fn annotation(&self, _env: &Env) -> ManagedBuffer<Env::Api>
Source§fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn into_value(self, _env: &Env) -> ManagedAddress<Env::Api>
fn into_value(self, _env: &Env) -> ManagedAddress<Env::Api>
Consumes annotated value to produce actual value. Read more
Source§fn with_value_ref<F, R>(&self, _env: &Env, f: F) -> R
fn with_value_ref<F, R>(&self, _env: &Env, f: F) -> R
Can be used when working with references only. Read more
Source§impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for TestAddress<'_>where
Env: TxEnv,
impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for TestAddress<'_>where
Env: TxEnv,
fn annotation(&self, _env: &Env) -> ManagedBuffer<Env::Api>
Source§fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn into_value(self, env: &Env) -> T
fn into_value(self, env: &Env) -> T
Consumes annotated value to produce actual value. Read more
Source§impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for TestSCAddress<'_>where
Env: TxEnv,
impl<Env> AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>> for TestSCAddress<'_>where
Env: TxEnv,
fn annotation(&self, _env: &Env) -> ManagedBuffer<Env::Api>
Source§fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
fn to_value(&self, _env: &Env) -> ManagedAddress<Env::Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn into_value(self, env: &Env) -> T
fn into_value(self, env: &Env) -> T
Consumes annotated value to produce actual value. Read more
Source§impl<Api> AnnotatedValue<TxScEnv<Api>, ManagedAddress<Api>> for ToCallerwhere
Api: CallTypeApi + BlockchainApi,
impl<Api> AnnotatedValue<TxScEnv<Api>, ManagedAddress<Api>> for ToCallerwhere
Api: CallTypeApi + BlockchainApi,
fn annotation(&self, env: &TxScEnv<Api>) -> ManagedBuffer<Api>
Source§fn to_value(&self, _env: &TxScEnv<Api>) -> ManagedAddress<Api>
fn to_value(&self, _env: &TxScEnv<Api>) -> ManagedAddress<Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn with_value_ref<F, R>(&self, _env: &TxScEnv<Api>, f: F) -> Rwhere
F: FnOnce(&ManagedAddress<Api>) -> R,
fn with_value_ref<F, R>(&self, _env: &TxScEnv<Api>, f: F) -> Rwhere
F: FnOnce(&ManagedAddress<Api>) -> R,
Can be used when working with references only. Read more
Source§fn into_value(self, env: &Env) -> T
fn into_value(self, env: &Env) -> T
Consumes annotated value to produce actual value. Read more
Source§impl<Api> AnnotatedValue<TxScEnv<Api>, ManagedAddress<Api>> for ToSelfwhere
Api: CallTypeApi + BlockchainApi,
impl<Api> AnnotatedValue<TxScEnv<Api>, ManagedAddress<Api>> for ToSelfwhere
Api: CallTypeApi + BlockchainApi,
fn annotation(&self, env: &TxScEnv<Api>) -> ManagedBuffer<Api>
Source§fn to_value(&self, _env: &TxScEnv<Api>) -> ManagedAddress<Api>
fn to_value(&self, _env: &TxScEnv<Api>) -> ManagedAddress<Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn with_value_ref<F, R>(&self, _env: &TxScEnv<Api>, f: F) -> Rwhere
F: FnOnce(&ManagedAddress<Api>) -> R,
fn with_value_ref<F, R>(&self, _env: &TxScEnv<Api>, f: F) -> Rwhere
F: FnOnce(&ManagedAddress<Api>) -> R,
Can be used when working with references only. Read more
Source§fn into_value(self, env: &Env) -> T
fn into_value(self, env: &Env) -> T
Consumes annotated value to produce actual value. Read more
Source§impl<M: Clone + ManagedTypeApi> Clone for ManagedAddress<M>
impl<M: Clone + ManagedTypeApi> Clone for ManagedAddress<M>
Source§fn clone(&self) -> ManagedAddress<M>
fn clone(&self) -> ManagedAddress<M>
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<M: ManagedTypeApi> Debug for ManagedAddress<M>
impl<M: ManagedTypeApi> Debug for ManagedAddress<M>
Source§impl<M> Default for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> Default for ManagedAddress<M>where
M: ManagedTypeApi,
Source§impl<M> From<&[u8; 32]> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> From<&[u8; 32]> for ManagedAddress<M>where
M: ManagedTypeApi,
Source§impl<M> From<&Address> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> From<&Address> for ManagedAddress<M>where
M: ManagedTypeApi,
Source§impl<M> From<[u8; 32]> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> From<[u8; 32]> for ManagedAddress<M>where
M: ManagedTypeApi,
Source§impl<M> From<Address> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> From<Address> for ManagedAddress<M>where
M: ManagedTypeApi,
Source§impl<M> From<ManagedByteArray<M, 32>> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> From<ManagedByteArray<M, 32>> for ManagedAddress<M>where
M: ManagedTypeApi,
Source§fn from(value: ManagedByteArray<M, 32>) -> Self
fn from(value: ManagedByteArray<M, 32>) -> Self
Converts to this type from the input type.
Source§impl<M> ManagedType<M> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> ManagedType<M> for ManagedAddress<M>where
M: ManagedTypeApi,
type OwnHandle = <M as HandleTypeInfo>::ManagedBufferHandle
fn get_handle(&self) -> M::ManagedBufferHandle
Source§unsafe fn forget_into_handle(self) -> Self::OwnHandle
unsafe fn forget_into_handle(self) -> Self::OwnHandle
Forgets current object (does not run destructor), but extracts the handle. Read more
Source§fn transmute_from_handle_ref(handle_ref: &M::ManagedBufferHandle) -> &Self
fn transmute_from_handle_ref(handle_ref: &M::ManagedBufferHandle) -> &Self
Implement carefully, since the underlying transmutation is an unsafe operation.
For types that wrap a handle to some VM-managed data,
make sure the type only contains the handle (plus ZSTs if necessary).
For types that just wrap another managed type it is easier, call for the wrapped object.
fn transmute_from_handle_ref_mut( handle_ref: &mut M::ManagedBufferHandle, ) -> &mut Self
fn get_raw_handle(&self) -> RawHandle
fn as_ref(&self) -> ManagedRef<'_, M, Self>
Source§impl<M: ManagedTypeApi> ManagedVecItem for ManagedAddress<M>
impl<M: ManagedTypeApi> ManagedVecItem for ManagedAddress<M>
Source§const SKIPS_RESERIALIZATION: bool = false
const SKIPS_RESERIALIZATION: bool = false
If true, then the encoding of the item is identical to the payload,
and no further conversion is necessary
(the underlying buffer can be used as-is during serialization).
False for all managed types, but true for basic types (like
u32
).Source§type PAYLOAD = ManagedVecItemPayloadBuffer<4>
type PAYLOAD = ManagedVecItemPayloadBuffer<4>
Type managing the underlying binary representation in a ManagedVec..
Source§type Ref<'a> = ManagedRef<'a, M, ManagedAddress<M>>
type Ref<'a> = ManagedRef<'a, M, ManagedAddress<M>>
Reference representation of the ManagedVec item. Read more
Source§fn read_from_payload(payload: &Self::PAYLOAD) -> Self
fn read_from_payload(payload: &Self::PAYLOAD) -> Self
Parses given bytes as a an owned object.
Source§unsafe fn borrow_from_payload<'a>(payload: &Self::PAYLOAD) -> Self::Ref<'a>
unsafe fn borrow_from_payload<'a>(payload: &Self::PAYLOAD) -> Self::Ref<'a>
Parses given bytes as a representation of the object, either owned, or a reference. Read more
Source§fn save_to_payload(self, payload: &mut Self::PAYLOAD)
fn save_to_payload(self, payload: &mut Self::PAYLOAD)
Converts the object into bytes. Read more
fn payload_size() -> usize
Source§impl<M> NestedDecode for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> NestedDecode for ManagedAddress<M>where
M: ManagedTypeApi,
Source§fn dep_decode_or_handle_err<I, H>(
input: &mut I,
h: H,
) -> Result<Self, H::HandledErr>where
I: NestedDecodeInput,
H: DecodeErrorHandler,
fn dep_decode_or_handle_err<I, H>(
input: &mut I,
h: H,
) -> Result<Self, H::HandledErr>where
I: NestedDecodeInput,
H: DecodeErrorHandler,
Version of
dep_decode
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 dep_decode<I>(input: &mut I) -> Result<Self, DecodeError>where
I: NestedDecodeInput,
fn dep_decode<I>(input: &mut I) -> Result<Self, DecodeError>where
I: NestedDecodeInput,
Attempt to deserialise the value from input,
using the format of an object nested inside another structure.
In case of success returns the deserialized value and the number of bytes consumed during the operation.
Source§impl<M> NestedEncode for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> NestedEncode for ManagedAddress<M>where
M: ManagedTypeApi,
Source§fn dep_encode_or_handle_err<O, H>(
&self,
dest: &mut O,
h: H,
) -> Result<(), H::HandledErr>where
O: NestedEncodeOutput,
H: EncodeErrorHandler,
fn dep_encode_or_handle_err<O, H>(
&self,
dest: &mut O,
h: H,
) -> Result<(), H::HandledErr>where
O: NestedEncodeOutput,
H: EncodeErrorHandler,
Version of
dep_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 dep_encode<O>(&self, dest: &mut O) -> Result<(), EncodeError>where
O: NestedEncodeOutput,
fn dep_encode<O>(&self, dest: &mut O) -> Result<(), EncodeError>where
O: NestedEncodeOutput,
NestedEncode to output, using the format of an object nested inside another structure.
Does not provide compact version.
Source§impl<Api: ManagedTypeApi> PartialEq<ManagedAddress<Api>> for TestAddress<'_>
impl<Api: ManagedTypeApi> PartialEq<ManagedAddress<Api>> for TestAddress<'_>
Source§impl<Api: ManagedTypeApi> PartialEq<ManagedAddress<Api>> for TestSCAddress<'_>
impl<Api: ManagedTypeApi> PartialEq<ManagedAddress<Api>> for TestSCAddress<'_>
Source§impl<'a, Api: ManagedTypeApi> PartialEq<TestAddress<'a>> for ManagedAddress<Api>
impl<'a, Api: ManagedTypeApi> PartialEq<TestAddress<'a>> for ManagedAddress<Api>
Source§impl<'a, Api: ManagedTypeApi> PartialEq<TestSCAddress<'a>> for ManagedAddress<Api>
impl<'a, Api: ManagedTypeApi> PartialEq<TestSCAddress<'a>> for ManagedAddress<Api>
Source§impl<M> PartialEq for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> PartialEq for ManagedAddress<M>where
M: ManagedTypeApi,
Source§impl<M: ManagedTypeApi> SCLowerHex for ManagedAddress<M>
impl<M: ManagedTypeApi> SCLowerHex for ManagedAddress<M>
fn fmt<F: FormatByteReceiver>(&self, f: &mut F)
Source§impl<M> TopDecode for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> TopDecode for ManagedAddress<M>where
M: ManagedTypeApi,
Source§fn top_decode_or_handle_err<I, H>(input: I, h: H) -> Result<Self, H::HandledErr>where
I: TopDecodeInput,
H: DecodeErrorHandler,
fn top_decode_or_handle_err<I, H>(input: I, h: H) -> Result<Self, H::HandledErr>where
I: TopDecodeInput,
H: DecodeErrorHandler,
Version of
top_decode
that can handle errors as soon as they occur.
For instance it 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 top_decode<I>(input: I) -> Result<Self, DecodeError>where
I: TopDecodeInput,
fn top_decode<I>(input: I) -> Result<Self, DecodeError>where
I: TopDecodeInput,
Attempt to deserialize the value from input.
Source§impl<M> TopEncode for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> TopEncode for ManagedAddress<M>where
M: ManagedTypeApi,
Source§fn top_encode_or_handle_err<O, H>(
&self,
output: O,
h: H,
) -> Result<(), H::HandledErr>where
O: TopEncodeOutput,
H: EncodeErrorHandler,
fn top_encode_or_handle_err<O, H>(
&self,
output: O,
h: H,
) -> Result<(), H::HandledErr>where
O: TopEncodeOutput,
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 top_encode<O>(&self, output: O) -> Result<(), EncodeError>where
O: TopEncodeOutput,
fn top_encode<O>(&self, output: O) -> Result<(), EncodeError>where
O: TopEncodeOutput,
Attempt to serialize the value to ouput.
Source§impl<M> TryFrom<ManagedBuffer<M>> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> TryFrom<ManagedBuffer<M>> for ManagedAddress<M>where
M: ManagedTypeApi,
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§impl<Env> TxFrom<Env> for &ManagedAddress<Env::Api>where
Env: TxEnv,
impl<Env> TxFrom<Env> for &ManagedAddress<Env::Api>where
Env: TxEnv,
fn resolve_address(&self, _env: &Env) -> ManagedAddress<Env::Api>
Source§impl<Env> TxFrom<Env> for ManagedAddress<Env::Api>where
Env: TxEnv,
impl<Env> TxFrom<Env> for ManagedAddress<Env::Api>where
Env: TxEnv,
fn resolve_address(&self, _env: &Env) -> ManagedAddress<Env::Api>
Source§impl<Env> TxToSpecified<Env> for &ManagedAddress<Env::Api>where
Env: TxEnv,
impl<Env> TxToSpecified<Env> for &ManagedAddress<Env::Api>where
Env: TxEnv,
Source§fn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
fn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
Avoids a clone when performing transfer-execute. Read more
Source§impl<Env> TxToSpecified<Env> for ManagedAddress<Env::Api>where
Env: TxEnv,
impl<Env> TxToSpecified<Env> for ManagedAddress<Env::Api>where
Env: TxEnv,
Source§fn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
fn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
Avoids a clone when performing transfer-execute. Read more
Source§impl<M> TypeAbi for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> TypeAbi for ManagedAddress<M>where
M: ManagedTypeApi,
type Unmanaged = Address
fn type_name_rust() -> TypeName
fn type_names() -> TypeNames
Source§fn provide_type_descriptions<TDC: TypeDescriptionContainer>(
accumulator: &mut TDC,
)
fn provide_type_descriptions<TDC: TypeDescriptionContainer>( accumulator: &mut TDC, )
A type can provide more than its own name.
For instance, a struct can also provide the descriptions of the type of its fields.
TypeAbi doesn’t care for the exact accumulator type,
which is abstracted by the TypeDescriptionContainer trait.
impl<M> Eq for ManagedAddress<M>where
M: ManagedTypeApi,
impl<Env> TxFromSourceValue<Env> for ManagedAddress<Env::Api>where
Env: TxEnv,
impl<Env> TxFromSpecified<Env> for &ManagedAddress<Env::Api>where
Env: TxEnv,
impl<Env> TxFromSpecified<Env> for ManagedAddress<Env::Api>where
Env: TxEnv,
impl<Env> TxTo<Env> for &ManagedAddress<Env::Api>where
Env: TxEnv,
impl<Env> TxTo<Env> for ManagedAddress<Env::Api>where
Env: TxEnv,
impl<M> TypeAbiFrom<&Address> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> TypeAbiFrom<&ManagedAddress<M>> for Addresswhere
M: ManagedTypeApi,
impl<M> TypeAbiFrom<&ManagedAddress<M>> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> TypeAbiFrom<[u8; 32]> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> TypeAbiFrom<Address> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> TypeAbiFrom<ESDTSystemSCAddress> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<M> TypeAbiFrom<ManagedAddress<M>> for Addresswhere
M: ManagedTypeApi,
impl<M> TypeAbiFrom<ManagedAddress<M>> for ManagedAddress<M>where
M: ManagedTypeApi,
impl<Api> TypeAbiFrom<TestAddress<'_>> for ManagedAddress<Api>where
Api: ManagedTypeApi,
impl<Api> TypeAbiFrom<TestSCAddress<'_>> for ManagedAddress<Api>where
Api: ManagedTypeApi,
Auto Trait Implementations§
impl<M> Freeze for ManagedAddress<M>
impl<M> RefUnwindSafe for ManagedAddress<M>
impl<M> Send for ManagedAddress<M>
impl<M> Sync for ManagedAddress<M>
impl<M> Unpin for ManagedAddress<M>
impl<M> UnwindSafe for ManagedAddress<M>
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§impl<T> SCCodec for Twhere
T: TopEncode,
impl<T> SCCodec for Twhere
T: TopEncode,
fn fmt<F>(&self, f: &mut F)where
F: FormatByteReceiver,
Source§impl<T> TopDecodeMulti for Twhere
T: TopDecode,
impl<T> TopDecodeMulti for Twhere
T: TopDecode,
Source§const IS_SINGLE_VALUE: bool = true
const IS_SINGLE_VALUE: bool = true
Used to optimize single value loading of endpoint arguments.
fn multi_decode_or_handle_err<I, H>(
input: &mut I,
h: H,
) -> Result<T, <H as DecodeErrorHandler>::HandledErr>where
I: TopDecodeMultiInput,
H: DecodeErrorHandler,
fn multi_decode<I>(input: &mut I) -> Result<Self, DecodeError>where
I: TopDecodeMultiInput,
Source§impl<T> TopDecodeMultiLength for T
impl<T> TopDecodeMultiLength for T
Source§impl<T> TopEncodeMulti for Twhere
T: TopEncode,
impl<T> TopEncodeMulti for Twhere
T: TopEncode,
Source§fn multi_encode_or_handle_err<O, H>(
&self,
output: &mut O,
h: H,
) -> Result<(), <H as EncodeErrorHandler>::HandledErr>where
O: TopEncodeMultiOutput,
H: EncodeErrorHandler,
fn multi_encode_or_handle_err<O, H>(
&self,
output: &mut O,
h: H,
) -> Result<(), <H as EncodeErrorHandler>::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.