Trait dup_indexer::PtrRead

source ·
pub unsafe trait PtrRead { }
Expand description

A value that can be used as a key in a DupIndexer, which will copy its content using the ptr::read function, while also owning it internally.

Safety

Implementing this trait is unsafe because the implementation must guarantee that the value can be copied by copying the bits of the value assuming that the value itself is valid and readonly. All Copy types are PtrRead, but Box is not.

Implementations on Foreign Types§

source§

impl<T: PtrRead, const N: usize> PtrRead for [T; N]

source§

impl PtrRead for NonZeroUsize

source§

impl<T: PtrRead> PtrRead for BTreeSet<T>

source§

impl PtrRead for &'static str

source§

impl PtrRead for i8

source§

impl PtrRead for u32

source§

impl PtrRead for IpAddr

source§

impl PtrRead for ()

source§

impl<T: PtrRead, V: PtrRead, S> PtrRead for HashMap<T, V, S>

source§

impl PtrRead for usize

source§

impl PtrRead for i64

source§

impl PtrRead for Duration

source§

impl PtrRead for u128

source§

impl PtrRead for i32

source§

impl<T: PtrRead, V: PtrRead> PtrRead for BTreeMap<T, V>

source§

impl PtrRead for String

source§

impl PtrRead for NonZeroU8

source§

impl PtrRead for NonZeroI16

source§

impl PtrRead for Ipv6Addr

source§

impl PtrRead for i128

source§

impl<T: PtrRead> PtrRead for Wrapping<T>

source§

impl PtrRead for NonZeroU32

source§

impl PtrRead for SystemTime

source§

impl PtrRead for u16

source§

impl PtrRead for NonZeroU64

source§

impl PtrRead for NonZeroI32

source§

impl PtrRead for NonZeroI128

source§

impl PtrRead for NonZeroU128

source§

impl PtrRead for NonZeroI8

source§

impl PtrRead for u8

source§

impl<T: PtrRead> PtrRead for Vec<T>

source§

impl PtrRead for bool

source§

impl PtrRead for u64

source§

impl PtrRead for NonZeroU16

source§

impl PtrRead for i16

source§

impl PtrRead for char

source§

impl PtrRead for NonZeroI64

source§

impl PtrRead for NonZeroIsize

source§

impl PtrRead for Ipv4Addr

source§

impl PtrRead for isize

source§

impl PtrRead for PathBuf

source§

impl<T: PtrRead> PtrRead for Option<T>

source§

impl<T: PtrRead> PtrRead for [T]

source§

impl PtrRead for f64

source§

impl PtrRead for f32

Implementors§