pub type DstPtr<D> = Dst<D, { _ }>;Expand description
Dst with the size and alignment of usize. This can be used to represent both dyn
pointers and dyn objects smaller than a pointer.
fn print(ptr: DstPtr<dyn Debug + '_>) {
println!("{ptr:?}");
}
print(DstPtr::new(1u8));
print(DstPtr::new(&1u8));
print(DstPtr::new(&mut 1u8));
print(DstPtr::new(Box::new(1u8)));Aliased Typeยง
pub struct DstPtr<D> { /* private fields */ }