Closed
Description
Currently derive(From)
produces
nutype/nutype_macros/src/common/gen/traits.rs
Lines 125 to 134 in c8e3f72
Is there anything holding back the production of something like the following?
quote! {
impl<T: Into<#inner_type>> ::core::convert::From<T> for #type_name {
#[inline]
fn from(raw_value: T) -> Self {
Self::new(raw_value.into())
}
}
}
Metadata
Metadata
Assignees
Labels
No labels