Macros§
- debug
- error
- info
- loro_
value - A macro for creating
LoroValue. It works just like thejson!macro inserde_json. - trace
- warn
Structs§
- Compact
Id - It’s the unique ID of an Op represented by PeerID and Counter.
- Compact
IdLp - It’s the unique ID of an Op represented by PeerID and Counter.
- Counter
Span - This struct supports reverse repr:
fromcan be less thanto. We need this because it’ll make merging deletions easier. - ID
- It’s the unique ID of an Op represented by PeerID and Counter.
- IdFull
- It’s the unique ID of an Op represented by PeerID, Lamport clock and Counter.
- IdLp
- It’s the unique ID of an Op represented by PeerID and Lamport clock. It’s used to define the total order of Ops.
- IdLp
Span - IdSpan
- This struct supports reverse repr: CounterSpan’s from can be less than to. But we should use it conservatively. We need this because it’ll make merging deletions easier.
- Internal
String - Lamport
Span - Loro
Binary Value - Loro
List Value - Loro
MapValue - Loro
String Value - TreeID
- Each node of movable tree has a unique
TreeIDgenerated by Loro.
Enums§
- ContainerID
- ContainerID includes the Op’s ID and the type. So it’s impossible to have the same ContainerID with conflict ContainerType.
- Container
Type - Loro
Encode Error - Loro
Error - Loro
Tree Error - Loro
Value - LoroValue is used to represents the state of CRDT at a given version.
Constants§
- DELETED_
TREE_ ROOT - In movable tree, we use a specific
TreeIDto represent the root of ALL deleted tree node.
Traits§
Functions§
- check_
root_ container_ name - Return whether the given name is a valid root container name.
- to_
value
Type Aliases§
- Counter
- If it’s the nth Op of a peer, the counter will be n.
- IdSpan
Vector - Lamport
- It’s the Lamport clock
- Loro
Result - PeerID
- Unique id for each peer. It’s a random u64 by default.