Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

upcast

Upcasts FromType to ToType - for types where conversion is always legal.

If done for wrong types would cause a compiler panic at the Sierra stage.

Fully qualified path: core::internal::bounded_int::upcast

pub extern fn upcast(x: FromType) -> ToType nopanic;