Based on the RFC for AppendableData here https://github.com/maidsafe/rfcs/blob/master/text/0038-appendable-data/0038-appendable-data.md it looks like PubAppendableData (and PrivAppendableData) keep their data in Rust’s BTreeSet, i.e. pub data : BTreeSet<AppendedData>
. It looks like BTreeSet<T>
expects T
to implement Ord
. Is Ord
implemented for AppendedData
anywhere? I haven’t been able to find it in the safe_core
repo anywhere.
My ultimate reason for asking this is that I was wondering if Appended Data keeps a chronological ordering of the data that has been appended to it. My impression is that it does, based on the presence of functions like this https://github.com/maidsafe/safe_core/blob/29beecc552742d78e91f515e9af82d8d6af437e7/src/ffi/low_level_api/appendable_data.rs#L556. Is my understanding of that correct, and does it have something to do with the Ord
implementation?