MCPcopy Create free account
hub / github.com/CAD97/pointer-utils / ErasablePtr

Interface ErasablePtr

crates/erasable/src/lib.rs:176–188  ·  view source on GitHub ↗

A (smart) pointer type that can be type-erased (making a thin pointer). When implementing this trait, you should implement it for all `Erasable` pointee types. Implementing this trait allows use of the pointer in erased contexts, such as [`Thin`]. # Safety A pointer type which is erasable must not include shared mutability before indirection. Equivalently, the erased pointer produced by calling

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Implementers 6

lib.rscrates/erasable/src/lib.rs
deref_before_indirection_is_unsound_examplecrates/erasable/tests/this_is_ub_examp
shared_mutability_before_indirection_is_unsound_examplecrates/erasable/tests/this_is_ub_examp
abuse.rscrates/erasable/tests/abuse.rs
lib.rscrates/ptr-union/src/lib.rs
clone_unaligned.rscrates/ptr-union/tests/clone_unaligned

Calls

no outgoing calls

Tested by

no test coverage detected