Function pb_jelly::type_is

source ·
pub fn type_is<B1: 'static, B2: 'static>() -> Option<fn(_: B1) -> B2>
Expand description

If B1 and B2 are the same type, returns a function to cast B1 -> B2; otherwise None. Used to implement PbBuffer casting.