Crate unreachable [] [src]

unreachable

An unreachable code optimization hint in stable rust, and some useful extension traits for Option and Result.

Traits

UncheckedOptionExt

An extension trait for Option<T> providing unchecked unwrapping methods.

UncheckedResultExt

An extension trait for Result<T, E> providing unchecked unwrapping methods.

Functions

unreachable

Hint to the optimizer that any code path which calls this function is statically unreachable and can be removed.