pointer-utils
pointer-utils copied to clipboard
A collection of small utilities for working with pointer types in Rust.
The build.rs mentions > // NB: Requires this impl to cover `T: ?Sized`, which is not the case as of 2020-09-01. But couldn't you add an implementation for a sized...
Hi :wave: As per the title, this PR derives `PartialOrd` and `Ord` traits for `SliceWithHeader` and `StrWithHeader` types.
I anticipate the change from the type alias to a newtype implementation here. Maybe this qualifies/requires a major version bump (I suspect this is still binary compatible as its a...
I had just fun: Type erased pointers that Drop properly: ``` pub struct FatErasedPtr { ptr: ErasedPtr, dropfn: fn(ErasedPtr), } impl
This allows one to use ErasedPtr where rust won't allow a typed reference. For example in recursive types.
It'd be nice to provide `MaybeUninit` helpers like in nightly std (perhaps wait for stabilization). See https://github.com/rust-lang/rust/issues/63291#issuecomment-918185194 and related discussion.
Doc review!
I try to write great documentation, but I need others' eyes to make sure it's good. Check out the [master documentation](https://cad97.github.io/pointer-utils/erasable/) and put any feedback in this thread. (Actionable issues...
This PR is the result of the discussion in #69 . It adds an example for the `slice-dst` crate and demonstrates how a custom `Vec` can be implemented.
Thank you for this awesome crate. I always respect when people dive into the `unsafe` world of Rust. I'd like to use the `slice-dst` crate to build something similar to...
`cargo miri test` recently was made much more compatible with `cargo test`, and now supports workspaces in the same way. While checking GitHub for projects that need adjustment to the...