Module :: variadic_from
Variadic from
Basic use-case.
use *;
To add to your project
Try out from the repository
Variadic from
use variadic_from::exposed::*;
fn main()
{
#[ derive( Debug, PartialEq, Default, VariadicFrom ) ]
struct StructNamedFields
{
a : i32,
b : i32,
}
let got : StructNamedFields = From::from( ( 13, 14 ) );
let exp = StructNamedFields{ a : 13, b : 14 };
assert_eq!( got, exp );
}
cargo add variadic_from
git clone https://github.com/Wandalen/wTools
cd wTools
cargo run --example variadic_from_trivial