Enum elrond_wasm::types::EsdtTokenType [−][src]
pub enum EsdtTokenType { Fungible, NonFungible, SemiFungible, Invalid, }
Variants
Implementations
impl EsdtTokenType
[src]
impl EsdtTokenType
[src]pub fn as_u8(&self) -> u8
[src]
pub fn as_type_name(&self) -> &'static [u8]
[src]
Trait Implementations
impl Clone for EsdtTokenType
[src]
impl Clone for EsdtTokenType
[src]fn clone(&self) -> EsdtTokenType
[src]
fn clone(&self) -> EsdtTokenType
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for EsdtTokenType
[src]
impl Debug for EsdtTokenType
[src]impl<'a> From<&'a [u8]> for EsdtTokenType
[src]
impl<'a> From<&'a [u8]> for EsdtTokenType
[src]impl From<u8> for EsdtTokenType
[src]
impl From<u8> for EsdtTokenType
[src]impl NestedDecode for EsdtTokenType
[src]
impl NestedDecode for EsdtTokenType
[src]fn dep_decode<I: NestedDecodeInput>(input: &mut I) -> Result<Self, DecodeError>
[src]
fn dep_decode<I: NestedDecodeInput>(input: &mut I) -> Result<Self, DecodeError>
[src]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. Read more
fn dep_decode_or_exit<I: NestedDecodeInput, ExitCtx: Clone>(
input: &mut I,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> Self
[src]
fn dep_decode_or_exit<I: NestedDecodeInput, ExitCtx: Clone>(
input: &mut I,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> Self
[src]Version of top_decode
that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error. Read more
impl NestedEncode for EsdtTokenType
[src]
impl NestedEncode for EsdtTokenType
[src]fn dep_encode<O: NestedEncodeOutput>(
&self,
dest: &mut O
) -> Result<(), EncodeError>
[src]
fn dep_encode<O: NestedEncodeOutput>(
&self,
dest: &mut O
) -> Result<(), EncodeError>
[src]NestedEncode to output, using the format of an object nested inside another structure. Does not provide compact version. Read more
fn dep_encode_or_exit<O: NestedEncodeOutput, ExitCtx: Clone>(
&self,
dest: &mut O,
c: ExitCtx,
exit: fn(_: ExitCtx, _: EncodeError) -> !
)
[src]
fn dep_encode_or_exit<O: NestedEncodeOutput, ExitCtx: Clone>(
&self,
dest: &mut O,
c: ExitCtx,
exit: fn(_: ExitCtx, _: EncodeError) -> !
)
[src]Version of top_decode
that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error. Read more
impl PartialEq<EsdtTokenType> for EsdtTokenType
[src]
impl PartialEq<EsdtTokenType> for EsdtTokenType
[src]impl TopDecode for EsdtTokenType
[src]
impl TopDecode for EsdtTokenType
[src]fn top_decode<I: TopDecodeInput>(input: I) -> Result<Self, DecodeError>
[src]
fn top_decode<I: TopDecodeInput>(input: I) -> Result<Self, DecodeError>
[src]Attempt to deserialize the value from input.
fn top_decode_or_exit<I: TopDecodeInput, ExitCtx: Clone>(
input: I,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> Self
[src]
fn top_decode_or_exit<I: TopDecodeInput, ExitCtx: Clone>(
input: I,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> Self
[src]Version of top_decode
that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error. Read more
impl TopEncode for EsdtTokenType
[src]
impl TopEncode for EsdtTokenType
[src]fn top_encode<O: TopEncodeOutput>(&self, output: O) -> Result<(), EncodeError>
[src]
fn top_encode<O: TopEncodeOutput>(&self, output: O) -> Result<(), EncodeError>
[src]Attempt to serialize the value to ouput.
fn top_encode_or_exit<O: TopEncodeOutput, ExitCtx: Clone>(
&self,
output: O,
c: ExitCtx,
exit: fn(_: ExitCtx, _: EncodeError) -> !
)
[src]
fn top_encode_or_exit<O: TopEncodeOutput, ExitCtx: Clone>(
&self,
output: O,
c: ExitCtx,
exit: fn(_: ExitCtx, _: EncodeError) -> !
)
[src]Version of top_decode
that exits quickly in case of error.
Its purpose is to create smaller bytecode implementations
in cases where the application is supposed to exit directly on decode error. Read more
impl TypeAbi for EsdtTokenType
[src]
impl TypeAbi for EsdtTokenType
[src]fn type_name() -> String
[src]
fn provide_type_descriptions<TDC: TypeDescriptionContainer>(
accumulator: &mut TDC
)
[src]
fn provide_type_descriptions<TDC: TypeDescriptionContainer>(
accumulator: &mut TDC
)
[src]A type can provide more than its own description. 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. Read more
impl StructuralPartialEq for EsdtTokenType
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ContractCallArg for T where
T: TopEncode,
[src]
impl<T> ContractCallArg for T where
T: TopEncode,
[src]pub fn push_async_arg(&Self, &mut ArgBuffer) -> Result<(), SCError>
[src]
impl<T> DynArg for T where
T: TopDecode,
[src]
impl<T> DynArg for T where
T: TopDecode,
[src]pub fn dyn_load<I, D>(&mut D, ArgId) -> T where
I: TopDecodeInput,
D: DynArgInput<I>,
[src]
I: TopDecodeInput,
D: DynArgInput<I>,
impl<T> EndpointResult for T where
T: TopEncode,
[src]
impl<T> EndpointResult for T where
T: TopEncode,
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more