Expand description
Shared byte buffers and containers.
An internal facade (a crate that re-exports other crates) for Covalence’s own crates. Its API may change without notice.
- Re-exports
bytes,hashbrown,indexmap,smallvec,smol_strandarrayvec, with their main types at the root. - Adds the
Symbolalias. Bytes::copy_from_sliceestablishes immutable ownership at an untrusted boundary. Clones and slices share that owned storage.- An
IndexMapkeeps insertion order. That is not canonical CBOR wire ordering. - Serialization lives in
covalence-lib-serde.
Re-exports§
pub use arrayvec;pub use bytes;pub use hashbrown;pub use indexmap;pub use smallvec;pub use smol_str;
Structs§
- Array
String - A string with a fixed capacity.
- Array
Vec - A vector with a fixed capacity.
- Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Bytes
Mut - A unique reference to a contiguous slice of memory.
- Hash
Table - Low-level hash table with explicit hashing.
- Index
Map - A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
- Index
Set - A hash set where the iteration order of the values is independent of their hash values.
- Small
Vec - A
Vec-like container that can store a small number of elements inline. - SmolStr
- A
SmolStris a string type that has the following properties:
Traits§
Type Aliases§
- Symbol
- An owned symbol name, stored inline when short and shared when long.