pointer_identity/
pointer.rs

1mod builtin;
2#[cfg(feature = "bytes")]
3mod bytes;
4
5/// Type that stores its value in an allocation and can retrieve a pointer to the value.
6pub trait Pointer {
7    type Target: ?Sized;
8
9    /// Get a read-only pointer to the value.
10    fn get(&self) -> *const Self::Target;
11}