dtolnay / linkme

Safe cross-platform linker shenanigans
Apache License 2.0
646 stars 41 forks source link

Add `DistributedSlice::contains_ptr` #32

Closed nvzqz closed 4 years ago

nvzqz commented 4 years ago

Implemented as a type-level function to prevent accidentally calling any future slice methods. This is a convention used by smart pointers.

Alternative: users manually call contains on the result of as_ptr_range (#33).