Expand description
AMT crate for use as rust IPLD data structure
Data structure reference: https://github.com/ipld/specs/blob/51fab05b4fe4930d3d851d50cc1e5f1a02092deb/data-structures/vector.md
Structs§
- Change
- Value
Mut - A wrapper around a mutable reference to a value in an Amt. Keeps track of whether
the value was mutated by setting a flag when
DerefMut::deref_mut
is called.
Enums§
- Change
Type - Error
- AMT Error
Constants§
- MAX_
INDEX - MaxIndex is the maximum index for elements in the AMT. This u64::MAX-1 so we don’t overflow u64::MAX when computing the length.
Functions§
- diff
- Returns a set of changes that transform node ‘a’ into node ‘b’. Ported from https://github.com/filecoin-project/go-amt-ipld/blob/master/diff.go#L41