Trait shredder::ToScan [−][src]
Expand description
A trait that allows something that is Scan
to be converted to a dyn
ref.
Implementing this trait is only necessary if you need to allocate an owned pointer to a DST,
e.g. Gc::from_box(Box<dyn MyTrait>)
This is unsafe because to_scan
must always be implemented as &*self