ptr_meta/
impls.rs
1use core::{any::Any, error::Error};
2
3use crate::{DynMetadata, Pointee};
4
5unsafe impl Pointee for dyn Any {
7 type Metadata = DynMetadata<dyn Any>;
8}
9
10unsafe impl Pointee for dyn Any + Send {
13 type Metadata = DynMetadata<dyn Any + Send>;
14}
15
16unsafe impl Pointee for dyn Any + Sync {
19 type Metadata = DynMetadata<dyn Any + Sync>;
20}
21
22unsafe impl Pointee for dyn Any + Send + Sync {
25 type Metadata = DynMetadata<dyn Any + Send + Sync>;
26}
27
28unsafe impl Pointee for dyn Error {
30 type Metadata = DynMetadata<dyn Error>;
31}
32
33unsafe impl Pointee for dyn Error + Send {
36 type Metadata = DynMetadata<dyn Error + Send>;
37}
38
39unsafe impl Pointee for dyn Error + Sync {
42 type Metadata = DynMetadata<dyn Error + Sync>;
43}
44
45unsafe impl Pointee for dyn Error + Send + Sync {
48 type Metadata = DynMetadata<dyn Error + Send + Sync>;
49}