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;

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