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
use super::Pointer;
use ::bytes::Bytes;

#[cfg(feature = "bytes")]
impl Pointer for Bytes {
    type Target = u8;

    fn get(&self) -> *const Self::Target {
        self.as_ptr()
    }
}