darling_core 0.1.0

Helper crate for proc-macro library for reading attributes into structs when implementing custom derives. Use `darling` to get library functionality.
Documentation
1
2
3
4
5
6
7
use syn::Variant;

use Result;

pub trait FromVariant: Sized {
    fn from_variant(variant: &Variant) -> Result<Self>;
}