#[derive(InnerFrom)]
{
// Attributes available to this derive:
#[inner_from]
}
Expand description
Implement InnerFrom for a structure.
ยงSample.
use derive_tools::InnerFrom;
#[ derive( InnerFrom ) ]
struct MyStruct( i32 );
let my_struct = MyStruct::inner_from( 13 );
dbg!( my_struct.0 );To learn more about the feature, study the module derive_tools::InnerFrom.