nevermore

Crates.ionevermore
lib.rsnevermore
version0.1.1
sourcesrc
created_at2023-09-09 21:05:21.663895
updated_at2023-09-09 23:14:56.962339
descriptionDerive macros for the bottom type core::convert::Infallible
homepage
repositoryhttps://github.com/rjacraft/nevermore
max_upload_size
id968359
size19,733
Petr Portnov | PROgrm_JARvis (JarvisCraft)

documentation

README

nevermore

crates.io version crates.io downloads docs.rs

Derive macros for Rust's bottom type core::convert::Infallible.

Features

FromNever

This derive macro automatically generates From<Infallible> implementation on the type:

#[derive(nevermore::FromNever)]
struct User {
    name: String,
    age: u8,
}

will generate something similar to

impl From<Infallible> for User {
    fn from(infallible: Infallible) {
        match infallible {}
    }
}
Commit count: 9

cargo fmt