Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[storage] Revisit Requirement for Array in journal::Fixed #1418

@patrick-ogrady

Description

@patrick-ogrady

It is not necessary for an object to implement AsRef<[u8]> + Deref<Target = [u8]> for fixed-length storage.

We should add an intermediate trait between Span and Array (like FixedSpan) that can be used for fixed storage.

We should retain Array for things we require to be very efficiently encoded as bytes (for things like keys in maps).

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions