Skip to content

JohnPeel/from-enum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

from-enum

It has the same interface as thiserror's #[from] attribute, but it works in no-std.

Example

use from_enum::From;

#[derive(From)]
enum MyEnum {
    String(#[from] String),
    Int(#[from] i32),
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages