[][src]Module unsafer::assume

Traits

OptionAssume

Functions

assume

This has no effect if predicate returns true and invokes undefined behavior or panics in debug otherwise. This provides compiler with additional opportunities for optimization when used in the critical paths of your application. Actual effect must always be measured with a profiler and through ASM / IR inspection.