Trait dangerous_option::ExceptionHandler [] [src]

pub trait ExceptionHandler {
    fn bad_deref() -> !;
    fn bad_take() -> !;
}

The exception handler defining behavior in case None is accessed.

Required Methods

Called when dereferencing of None is attempted.

Called on attempt to take out value from Some, if there is None.

Implementors