You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here's a simple example of what I would like, look in the comments
use dbg_pls::{pretty,DebugPls, color};#[derive(DebugPls,Copy,Clone,Debug)]pubstructDemo{foo:i32,bar:&'staticstr,}fnmain(){letmut val = [Demo{foo:5,bar:"hello"};10];
val[6].bar = "Hello, world! I am a very long string";// to specify a theme file as parameterlet output = format!("{}", color(&val,"path/to/tmTheme"));println!("{}", output);color!(&val,"path/to/tmTheme");// and to have a builder pattern to cache the theme load// the API doesnt need to be like that, you decidelet colorizer = Colorizer::new().theme("path/to/tmTheme").build();// just pass the object as reflet colored_string_repr = colorizer.color(&val);// just like color! macro
colorizer.dbg(&val);// this will print module and line information just like dbg!}
thats all, in short
i just want to be able to load a custom theme.
The text was updated successfully, but these errors were encountered:
here's a simple example of what I would like, look in the comments
thats all, in short
i just want to be able to load a custom theme.
The text was updated successfully, but these errors were encountered: