Git Product home page Git Product logo

Comments (6)

vitiral avatar vitiral commented on August 19, 2024

I would definitely accept a PR for impl PartialOrd for all types! I think you should be able to just #[derive(PartialOrd)] on them.

from path_abs.

vitiral avatar vitiral commented on August 19, 2024

It should already be implemented actually?

https://github.com/vitiral/path_abs/blob/master/src/arc.rs#L37

I found a similar derive for PathFile as well. Is it missing elsewhere?

from path_abs.

ismaelgv avatar ismaelgv commented on August 19, 2024

It should already be implemented actually?

Totally my fault!! I thought cmp() was part of PartialOrd, but is in Ord trait instead. PathAbs is working as expected with PartialOrd and PartialEq.

On the other hand, Ord and Eq traits are also implemented for Path and PathBuf. It would be interesting to have them. Should I open a different issue or rename this one? My fault again, they are also implemented! It seems I am too tired to keep programming today. πŸ˜‹

from path_abs.

vitiral avatar vitiral commented on August 19, 2024

from path_abs.

ismaelgv avatar ismaelgv commented on August 19, 2024

Go ahead and rename this one, and feel free to open a PR to add Ord and Eq

No need, they are working as expected. Sorry for the noise!

from path_abs.

vitiral avatar vitiral commented on August 19, 2024

πŸ‘

from path_abs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.