Crate unreachable[][src]

unreachable

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

Re-exports

extern crate core;
extern crate compiler_builtins;
extern crate void;
use core::prelude::v1::*;
use core::mem;

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.