Crates.io | nevermore |
lib.rs | nevermore |
version | 0.1.1 |
source | src |
created_at | 2023-09-09 21:05:21.663895 |
updated_at | 2023-09-09 23:14:56.962339 |
description | Derive macros for the bottom type core::convert::Infallible |
homepage | |
repository | https://github.com/rjacraft/nevermore |
max_upload_size | |
id | 968359 |
size | 19,733 |
Derive macros for Rust's bottom type core::convert::Infallible.
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 {}
}
}