tuplities_debug/lib.rs
1//! [tuplities](https://github.com/lucacappelletti94/tuplities) suite crate providing the `TupleDebug` trait.
2#![no_std]
3
4extern crate alloc;
5
6#[tuplities_derive::impl_tuple_debug]
7/// A trait for debugging tuples.
8pub trait TupleDebug {
9 /// Returns a string representation of the tuple for debugging.
10 ///
11 /// # Examples
12 ///
13 /// ```rust
14 /// use tuplities_debug::TupleDebug;
15 ///
16 /// let tuple = (1, "hello", 3.14);
17 /// let debug_str = tuple.tuple_debug();
18 ///
19 /// assert_eq!(debug_str, "(1, \"hello\", 3.14)");
20 /// ```
21 fn tuple_debug(&self) -> alloc::string::String;
22}