CastTo

Trait CastTo 

Source
pub(crate) trait CastTo: 'static {
    type Target: 'static;
}
Expand description

Helper trait to force turbofish on calls to e.g. ptr.cast::<U>().

Required Associated Types§

Source

type Target: 'static

Target type of the cast. This is always equal to Self, but can deliberately not be inferred by the compiler.

Implementors§

Source§

impl<T: 'static> CastTo for T