matthieu-m

Results 50 comments of matthieu-m

I have worked with a number of serialization frameworks which serialized in "natural order". This is rather handy as serializing an array of i32 is a single `memcpy` call. On...

I do not know. There are multiple crates that use branding that I know of: - [https://crates.io/crates/qcell](`qcell`) has a variant of `GhostCell`, - [https://github.com/bluss/indexing](`indexing`) uses them to brand indexes known...

> There is a "broken example" but it talks about half-ownership of some points so this already seems to be specific to static-rc... is there some way to phrase this...

Thanks for the questions. > Why is this not a `&'a mut`? I assume the idea is that GhostCursor does exclusively borrow the GhostToken for lifetime `'a`, otherwise the API...

Sorry, I completely forgot about this. Thankfully @wackbyte didn't and fixed `move_mut` in #12, on top of tweaking `into_parts` to return a mutable token as discussed.

I have no idea. Early on I explored the idea, and played around with a variety of solutions, but ultimately I gave up. My idea was to use `'static` as...

I am in general happy to accept PRs, though I do not have any significant work planned myself. I would encourage you to discuss any contribution first, to avoid wasting...

`StaticRc` should, indeed, be a linear type. Unfortunately, to the best of my knowledge there is no way to implement linear types in Rust, and therefore as a "placeholder" there...

@5225225 I'd love to have a compile-time error, however shouldn't we ideally aim for an error in Debug, rather than Release? I suppose having `debug_assert!` in Debug and `dont_panic!` in...

Unfortunately, as you noticed, a `StaticRc` is necessarily unsafe as it does not own any fraction of `T` and thus the `T` can be dropped at any time. --- With...