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.
8///
9/// Part of the [`tuplities`](https://docs.rs/tuplities/latest/tuplities/) crate.
10pub trait TupleDebug {
11    /// Returns a string representation of the tuple for debugging.
12    ///
13    /// # Examples
14    ///
15    /// ```rust
16    /// use tuplities_debug::TupleDebug;
17    ///
18    /// let tuple = (1, "hello", 3.14);
19    /// let debug_str = tuple.tuple_debug();
20    ///
21    /// assert_eq!(debug_str, "(1, \"hello\", 3.14)");
22    /// ```
23    fn tuple_debug(&self) -> alloc::string::String;
24}