[][src]Struct ontio_std::abi::VmValueParser

pub struct VmValueParser<'a> {
    pub source: Source<'a>,
}

Fields

source: Source<'a>

Implementations

impl<'a> VmValueParser<'a>[src]

pub fn new(bs: &'a [u8]) -> Self[src]

pub fn read<T: VmValueDecoder<'a>>(&mut self) -> Result<T, Error>[src]

pub fn string(&mut self) -> Result<&'a str, Error>[src]

pub fn bytearray(&mut self) -> Result<&'a [u8], Error>[src]

pub fn address(&mut self) -> Result<&'a Address, Error>[src]

pub fn number(&mut self) -> Result<U128, Error>[src]

pub fn bool(&mut self) -> Result<bool, Error>[src]

pub fn h256(&mut self) -> Result<&'a H256, Error>[src]

Auto Trait Implementations

impl<'a> Send for VmValueParser<'a>

impl<'a> Sync for VmValueParser<'a>

impl<'a> Unpin for VmValueParser<'a>

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.