Result

Custom types

Bytes32Result

type Bytes32Result is bytes32;

BytesResult

type BytesResult is bytes32;

StringResult

type StringResult is bytes32;

BoolResult

type BoolResult is bytes32;

EmptyResult

type EmptyResult is bytes32;

Functions

Ok() → (EmptyResult)

Ok(bytes32 value) → (Bytes32Result)

Ok(bytes value) → (BytesResult)

Ok(string value) → (StringResult)

Ok(bool value) → (BoolResult)

LibResultPointer

decode(Pointer self) → (ResultType, Pointer)

isError(Pointer self) → (bool)

isOk(Pointer self) → (bool)

toError(Pointer self) → (Error)

unwrap(Pointer self) → (Pointer ptr)

expect(Pointer self, string err) → (Pointer ptr)

LibBytes32ResultPointer

toBytes32Result(Pointer self) → (Bytes32Result res)

LibBytes32Result

isError(Bytes32Result self) → (bool)

isOk(Bytes32Result self) → (bool)

toError(Bytes32Result self) → (Error)

toValue(Bytes32Result self) → (bytes32)

unwrap(Bytes32Result self) → (bytes32)

expect(Bytes32Result self, string err) → (bytes32)

toPointer(Bytes32Result self) → (Pointer)

LibBytesResultPointer

toBytesResult(Pointer self) → (BytesResult res)

LibBytesResult

isOk(BytesResult self) → (bool)

isError(BytesResult self) → (bool)

unwrap(BytesResult self) → (bytes)

expect(BytesResult self, string err) → (bytes)

toError(BytesResult self) → (Error)

toValue(BytesResult self) → (bytes)

toPointer(BytesResult self) → (Pointer)

LibStringResultPointer

toStringResult(Pointer self) → (StringResult res)

LibStringResult

isOk(StringResult self) → (bool)

isError(StringResult self) → (bool)

unwrap(StringResult self) → (string val)

expect(StringResult self, string err) → (string)

toError(StringResult self) → (Error)

toValue(StringResult self) → (string val)

toPointer(StringResult self) → (Pointer)

LibBoolResultPointer

toBoolResult(Pointer self) → (BoolResult res)

LibBoolResult

isOk(BoolResult self) → (bool)

isError(BoolResult self) → (bool)

unwrap(BoolResult self) → (bool val)

expect(BoolResult self, string err) → (bool)

toError(BoolResult self) → (Error)

toValue(BoolResult self) → (bool val)

toPointer(BoolResult self) → (Pointer)

LibEmptyResultPointer

toEmptyResult(Pointer self) → (EmptyResult res)

LibEmptyResult

isOk(EmptyResult self) → (bool)

isError(EmptyResult self) → (bool)

unwrap(EmptyResult self)

expect(EmptyResult self, string err)

toError(EmptyResult self) → (Error)

toPointer(EmptyResult self) → (Pointer)

LibResultType

encode(ResultType _type, Pointer _dataPtr) → (Pointer result)