[][src]Trait casperlabs_contract_ffi::contract_api::argsparser::ArgsParser

pub trait ArgsParser {
    fn parse(&self) -> Result<Vec<Vec<u8>>, Error>;
}

Parses Self into a byte representation that is ABI compliant. It means that each type of the tuple have to implement ToBytes. Implemented for tuples of various sizes.

Required methods

fn parse(&self) -> Result<Vec<Vec<u8>>, Error>

parse returns Vec<Vec<u8>> because we want to be able to discriminate between elements of the tuple and retain the order.

Loading content...

Implementors

impl ArgsParser for ()[src]

impl<T1: ToBytes> ArgsParser for (T1,)[src]

impl<T1: ToBytes, T2: ToBytes> ArgsParser for (T1, T2)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes> ArgsParser for (T1, T2, T3)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes> ArgsParser for (T1, T2, T3, T4)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes, T5: ToBytes> ArgsParser for (T1, T2, T3, T4, T5)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes, T5: ToBytes, T6: ToBytes> ArgsParser for (T1, T2, T3, T4, T5, T6)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes, T5: ToBytes, T6: ToBytes, T7: ToBytes> ArgsParser for (T1, T2, T3, T4, T5, T6, T7)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes, T5: ToBytes, T6: ToBytes, T7: ToBytes, T8: ToBytes> ArgsParser for (T1, T2, T3, T4, T5, T6, T7, T8)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes, T5: ToBytes, T6: ToBytes, T7: ToBytes, T8: ToBytes, T9: ToBytes> ArgsParser for (T1, T2, T3, T4, T5, T6, T7, T8, T9)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes, T5: ToBytes, T6: ToBytes, T7: ToBytes, T8: ToBytes, T9: ToBytes, T10: ToBytes> ArgsParser for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes, T5: ToBytes, T6: ToBytes, T7: ToBytes, T8: ToBytes, T9: ToBytes, T10: ToBytes, T11: ToBytes> ArgsParser for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes, T5: ToBytes, T6: ToBytes, T7: ToBytes, T8: ToBytes, T9: ToBytes, T10: ToBytes, T11: ToBytes, T12: ToBytes> ArgsParser for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes, T5: ToBytes, T6: ToBytes, T7: ToBytes, T8: ToBytes, T9: ToBytes, T10: ToBytes, T11: ToBytes, T12: ToBytes, T13: ToBytes> ArgsParser for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes, T5: ToBytes, T6: ToBytes, T7: ToBytes, T8: ToBytes, T9: ToBytes, T10: ToBytes, T11: ToBytes, T12: ToBytes, T13: ToBytes, T14: ToBytes> ArgsParser for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes, T5: ToBytes, T6: ToBytes, T7: ToBytes, T8: ToBytes, T9: ToBytes, T10: ToBytes, T11: ToBytes, T12: ToBytes, T13: ToBytes, T14: ToBytes, T15: ToBytes> ArgsParser for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)[src]

impl<T1: ToBytes, T2: ToBytes, T3: ToBytes, T4: ToBytes, T5: ToBytes, T6: ToBytes, T7: ToBytes, T8: ToBytes, T9: ToBytes, T10: ToBytes, T11: ToBytes, T12: ToBytes, T13: ToBytes, T14: ToBytes, T15: ToBytes, T16: ToBytes> ArgsParser for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)[src]

Loading content...