Skip to main content

dbg

Function dbg 

Source
pub fn dbg<T: Debug + ?Sized>(msg: &T)
Available on crate features print_ext and std only.
Expand description

Prints a debug representation of msg to stdout, followed by a newline.

This is a lightweight convenience wrapper around println!("{msg:?}"). Unlike std::dbg!, it does not print file/line info and does not return the value.

Accepts dynamically-sized types (str, slices, trait objects) via ?Sized.

=> {msg:?} |> println!