D6773: rust-hgpath: add HgPath and HgPathBuf structs to encapsulate handling of paths

Yuya Nishihara yuya at tcha.org
Sat Aug 31 08:17:09 EDT 2019

> +#[derive(Eq, Ord, PartialEq, PartialOrd, Debug, Hash)]
> +pub struct HgPath {
> +    inner: [u8],
> +}

I found `std::path::Path` has a well-written inline comment about
the unsafe pointer cast. Let's copy it so we won't introduce a
memory issue.

More information about the Mercurial-devel mailing list