Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Ord for Position, RoomName, ObjectId and RawObjectId #238

Merged
merged 2 commits into from
Aug 23, 2019

Conversation

daboross
Copy link
Collaborator

This implements half of #226! ObjectId and RawObjectId are per the specification from my last comment, and Position / RoomName sort by y first rather than by x first.

@@ -23,6 +40,8 @@ pub struct RoomName {
///
/// This is the same representation of the upper 16 bits of [`Position`]'s
/// packed representation.
///
/// [`Position`]: crate::local::Position
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, great thanks, I saw the doc compiler complaining about that earlier!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I almost made a separate PR but decided just to include it in this one

@daboross daboross merged commit 56ec5ec into master Aug 23, 2019
@daboross daboross deleted the ord-for-local-types branch August 23, 2019 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants