Module ckb_types::prelude[][src]

Expand description

This module includes several traits.

Few traits are re-exported from other crates, few are used as aliases and others are syntactic sugar.

Traits

An alias of from_slice(..) to mark where we are really have confidence to do unwrap on the result of from_slice(..).

A syntactic sugar to convert a rust type into binary data.

A syntactic sugar to convert a vector of binary data into one binary data.

An alias of unwrap() to mark where we are really have confidence to do unwrap.

A syntactic sugar to convert binary data into rust types.

Functions