#tuple #tuple-into

no-std tuple-into

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

1 unstable release

Uses new Rust 2024

0.1.0 Feb 28, 2025

#459 in Development tools

Download history 118/week @ 2025-02-24 30/week @ 2025-03-03 1/week @ 2025-03-10

149 downloads per month

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