multiversx_sc::api

Trait ManagedTypeApiImpl

Source
pub trait ManagedTypeApiImpl:
    BigIntApiImpl
    + BigFloatApiImpl
    + EllipticCurveApiImpl
    + ManagedBufferApiImpl
    + ManagedMapApiImpl
    + ErrorApi {
    // Required methods
    fn mb_to_big_int_unsigned(
        &self,
        buffer_handle: Self::ManagedBufferHandle,
        dest: Self::BigIntHandle,
    );
    fn mb_to_big_int_signed(
        &self,
        buffer_handle: Self::ManagedBufferHandle,
        dest: Self::BigIntHandle,
    );
    fn mb_from_big_int_unsigned(
        &self,
        big_int_handle: Self::BigIntHandle,
        dest: Self::ManagedBufferHandle,
    );
    fn mb_from_big_int_signed(
        &self,
        big_int_handle: Self::BigIntHandle,
        dest: Self::ManagedBufferHandle,
    );
    fn mb_to_big_float(
        &self,
        buffer_handle: Self::ManagedBufferHandle,
        dest: Self::BigFloatHandle,
    );
    fn mb_from_big_float(
        &self,
        big_float_handle: Self::BigFloatHandle,
        dest: Self::ManagedBufferHandle,
    );

    // Provided methods
    fn validate_token_identifier(
        &self,
        token_id_handle: Self::ManagedBufferHandle,
    ) -> bool { ... }
    fn get_token_ticker_len(&self, token_id_len: usize) -> usize { ... }
}

Required Methods§

Source

fn mb_to_big_int_unsigned( &self, buffer_handle: Self::ManagedBufferHandle, dest: Self::BigIntHandle, )

Source

fn mb_to_big_int_signed( &self, buffer_handle: Self::ManagedBufferHandle, dest: Self::BigIntHandle, )

Source

fn mb_from_big_int_unsigned( &self, big_int_handle: Self::BigIntHandle, dest: Self::ManagedBufferHandle, )

Source

fn mb_from_big_int_signed( &self, big_int_handle: Self::BigIntHandle, dest: Self::ManagedBufferHandle, )

Source

fn mb_to_big_float( &self, buffer_handle: Self::ManagedBufferHandle, dest: Self::BigFloatHandle, )

Source

fn mb_from_big_float( &self, big_float_handle: Self::BigFloatHandle, dest: Self::ManagedBufferHandle, )

Provided Methods§

Source

fn validate_token_identifier( &self, token_id_handle: Self::ManagedBufferHandle, ) -> bool

Source

fn get_token_ticker_len(&self, token_id_len: usize) -> usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§