Struct ckb_types::packed::OutPoint [−][src]
pub struct OutPoint(_);Implementations
Generates a binary data to be used as a key for indexing cells in storage.
Notice
The difference between Self::as_slice()
and Self::to_cell_key() is the byteorder of the field index.
-
Uses little endian for the field
indexin serialization.Because in the real world, the little endian machines make up the majority, we can cast it as a number without re-order the bytes.
-
Uses big endian for the field
indexto index cells in storage.So we can use
tx_hashas key prefix to seek the cells from storage in the forward order, so as to traverse cells in the forward order too.
Trait Implementations
Packs a vector of binary data into one binary data.
Auto Trait Implementations
impl RefUnwindSafe for OutPoint
impl UnwindSafe for OutPoint
Blanket Implementations
Mutably borrows from an owned value. Read more
Packs a vector of binary data into one binary data.
Packs a vector of binary data into one binary data.
Packs a vector of binary data into one binary data.
