[][src]Struct libabieos_sys::ABIEOS

pub struct ABIEOS { /* fields omitted */ }

Implementations

impl ABIEOS[src]

pub fn new() -> ABIEOS[src]

Safety

make sure you call destroy after use

pub fn new_with_abi(contract_name: &str, abi: &str) -> Result<ABIEOS>[src]

Safety

make sure you call destroy after use

pub fn destroy(&self)[src]

Safety

after destroy, don't use any other function

pub fn set_abi(&self, contract_name: &str, abi: &str) -> Result<bool>[src]

pub fn str_to_name(&self, str_name: &str) -> Result<ABIName>[src]

pub fn hex_to_json(
    &self,
    contract_name: &str,
    type_str: &str,
    hex: &[u8]
) -> Result<String>
[src]

pub fn bin_to_json(
    &self,
    contract_name: &str,
    type_str: &str,
    hex: &[u8]
) -> Result<String>
[src]

pub fn json_to_hex(
    &self,
    contract_name: &str,
    type_str: &str,
    json: &str
) -> Result<String>
[src]

Safety

abieos_get_xxx calls can potentially overwrite the memory returned on the next call.

pub fn json_to_bin(
    &self,
    contract_name: &str,
    type_str: &str,
    json: &str
) -> Result<Vec<u8>>
[src]

Safety

abieos_get_xxx calls can potentially overwrite the memory returned on the next call.

Auto Trait Implementations

impl RefUnwindSafe for ABIEOS

impl !Send for ABIEOS

impl !Sync for ABIEOS

impl Unpin for ABIEOS

impl UnwindSafe for ABIEOS

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.