Lines Matching full:dbg
10 /// [`std::dbg`], but using [`pr_info`] instead of [`eprintln`].
20 /// let b = dbg!(a * 2) + 1;
33 /// to give up ownership, you can instead borrow with `dbg!(&expr)`
36 /// The `dbg!` macro works exactly the same in release builds.
41 /// used during development. Therefore, avoid committing `dbg!` macro
59 /// if dbg!(n.checked_sub(4)).is_some() {
78 /// if dbg!(n <= 1) {
79 /// dbg!(1)
81 /// dbg!(n * factorial(n - 1))
85 /// dbg!(factorial(4));
102 /// The `dbg!(..)` macro moves the input:
110 /// let _ = dbg!(a); // <-- `a` is moved here.
111 /// let _ = dbg!(a); // <-- `a` is moved again; error!
114 /// You can also use `dbg!()` without a value to just print the
117 /// Finally, if you want to `dbg!(..)` multiple values, it will treat them as
122 /// assert_eq!(dbg!(1usize, 2u32), (1, 2));
131 /// assert_eq!(1, dbg!(1u32,)); // trailing comma ignored
132 /// assert_eq!((1,), dbg!((1u32,))); // 1-tuple
135 /// [`std::dbg`]: https://doc.rust-lang.org/std/macro.dbg.html
141 macro_rules! dbg { macro
162 ($($crate::dbg!($val)),+,)