#tuple #elements #convert #convertible

no-std tuple-into

A trait providing a convenient way to convert tuples of convertible elements

1 unstable release

new 0.1.0 Feb 28, 2025

#1364 in Development tools

Apache-2.0

3KB

tuple-into

A trait providing a convenient way to convert tuples of compatible elements.

use tuple_into::TupleInto;

fn main() {
    let tuple: (String, String) = ("hello", "world").tuple_into();
    println!("{tuple:?}"); // '("hello", "world")'
}

Dependencies

~3KB