pointer-identity 0.1.1

Wrapper type to treat the pointer address of types as identity rather than the value
Documentation
1
2
3
4
5
6
7
8
9
10
11
mod builtin;
#[cfg(feature = "bytes")]
mod bytes;

/// Type that stores its value in an allocation and can retrieve a pointer to the value.
pub trait Pointer {
    type Target: ?Sized;

    /// Get a read-only pointer to the value.
    fn get(&self) -> *const Self::Target;
}