Trait shredder::ToScan[][src]

pub unsafe trait ToScan {
    fn to_scan(&self) -> &(dyn Scan + 'static);
}
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

Required methods

Converts this value to a dyn Scan reference value.

Implementors