Crate ltptr

Source
Expand description

This crate provides “checked” raw pointers.

We found ourselves to be experiencing a lot of cognitive overhead when doing FFI interactions. A non-insignificant portion of them came from raw pointers, as_ptr, as_mut_ptr, and the like. This removes that cognitive overhead.

And as Amos once said, “Until we demand better of our tools, we are doomed to be woken up in the middle of the night, over and over again, because some nil value slipped in where it never should have.”. That is, we are doomed to repeat the same mistakes over and over again. So we must demand better of our tools!

Structs§

ConstLtPtr
*const T with a lifetime.
MutLtPtr
*mut T with a lifetime.

Traits§

AsLtPtr
Trait for conversion into a ConstLtPtr.
AsMutLtPtr
Trait for conversion into a MutLtPtr.
FromLtPtr
Trait for conversion from a ConstLtPtr of the given Source type.
SliceExt
Additional slice methods.