4 releases

0.1.4 Feb 8, 2025
0.1.3 Feb 8, 2025
0.1.2 Feb 8, 2025
0.1.1 Feb 8, 2025

#440 in Internationalization (i18n)

Download history 265/week @ 2025-02-05

265 downloads per month

MulanPSL-2.0

11KB
53 lines

dstr: get string from Debug trait

use aok::{OK, Result};
use dstr::{dstr, dvec};
use tracing::info;

#[static_init::constructor(0)]
extern "C" fn _loginit() {
  loginit::init();
}

#[derive(Debug)]
pub struct T {
  pub i: i32,
}

#[test]
fn test() -> Result<()> {
  let a = T { i: 123 };
  info!("{}", dstr(&a));
  let b = T { i: 456 };
  info!("{:?}", dvec![a, b]);
  OK
}

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Dependencies

~135KB