Right now we only require two nightly features:
To replace const_option we can add a utils::unwrap_option helper function. This will work because const_panic is already stable.
To replace never_type we can add a pub enum Never {} type which will work similar to std::convert::Infailable. Alternatively, we can just alias pub type Never = std::convert::Infailable.
When ! finally becomes stable, we can switch to that.
Right now we only require two nightly features:
const_optionnever_type(optional)To replace
const_optionwe can add autils::unwrap_optionhelper function. This will work becauseconst_panicis already stable.To replace
never_typewe can add apub enum Never {}type which will work similar tostd::convert::Infailable. Alternatively, we can just aliaspub type Never = std::convert::Infailable.When
!finally becomes stable, we can switch to that.