[−][src]Struct libabieos_sys::ABIEOS
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<u64>
[src]
pub fn hex_to_json(
&self,
contract_name: &str,
type_str: &str,
hex: &[u8]
) -> Result<String>
[src]
&self,
contract_name: &str,
type_str: &str,
hex: &[u8]
) -> Result<String>
pub fn bin_to_json(
&self,
contract_name: &str,
type_str: &str,
hex: &[u8]
) -> Result<String>
[src]
&self,
contract_name: &str,
type_str: &str,
hex: &[u8]
) -> Result<String>
pub fn json_to_hex(
&self,
contract_name: &str,
type_str: &str,
json: &str
) -> Result<String>
[src]
&self,
contract_name: &str,
type_str: &str,
json: &str
) -> Result<String>
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]
&self,
contract_name: &str,
type_str: &str,
json: &str
) -> Result<Vec<u8>>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,