PtrRead

Trait 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<T> is not.

Implementations on Foreign Types§

Source§

impl PtrRead for &'static str

Source§

impl PtrRead for IpAddr

Source§

impl PtrRead for bool

Source§

impl PtrRead for char

Source§

impl PtrRead for f32

Source§

impl PtrRead for f64

Source§

impl PtrRead for i8

Source§

impl PtrRead for i16

Source§

impl PtrRead for i32

Source§

impl PtrRead for i64

Source§

impl PtrRead for i128

Source§

impl PtrRead for isize

Source§

impl PtrRead for u8

Source§

impl PtrRead for u16

Source§

impl PtrRead for u32

Source§

impl PtrRead for u64

Source§

impl PtrRead for u128

Source§

impl PtrRead for ()

Source§

impl PtrRead for usize

Source§

impl PtrRead for String

Source§

impl PtrRead for Ipv4Addr

Source§

impl PtrRead for Ipv6Addr

Source§

impl PtrRead for Duration

Source§

impl PtrRead for PathBuf

Source§

impl PtrRead for SystemTime

Source§

impl PtrRead for NonZeroI8

Source§

impl PtrRead for NonZeroI16

Source§

impl PtrRead for NonZeroI32

Source§

impl PtrRead for NonZeroI64

Source§

impl PtrRead for NonZeroI128

Source§

impl PtrRead for NonZeroIsize

Source§

impl PtrRead for NonZeroU8

Source§

impl PtrRead for NonZeroU16

Source§

impl PtrRead for NonZeroU32

Source§

impl PtrRead for NonZeroU64

Source§

impl PtrRead for NonZeroU128

Source§

impl PtrRead for NonZeroUsize

Source§

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

Source§

impl<T: PtrRead> PtrRead for [T]

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§