[−][src]Trait lark_debug_with::DebugWith
A Debug
trait that carries a context. Most types in Lark
implement it, and you can use derive(DebugWith)
to get
Debug-like behavior (from the lark-debug-derive crate).
To use it, do something like format!("{}", value.debug_with(cx))
.
Required methods
Loading content...Provided methods
fn debug_with<Cx: ?Sized, 'me>(
&'me self,
cx: &'me Cx
) -> DebugCxPair<'me, &'me Self, Cx>
&'me self,
cx: &'me Cx
) -> DebugCxPair<'me, &'me Self, Cx>
fn into_debug_with<Cx: ?Sized, 'me>(
self,
cx: &'me Cx
) -> DebugCxPair<'me, Self, Cx> where
Self: Sized,
self,
cx: &'me Cx
) -> DebugCxPair<'me, Self, Cx> where
Self: Sized,
Implementations on Foreign Types
impl<T> DebugWith for Vec<T> where
T: DebugWith,
[src]
impl<T> DebugWith for Vec<T> where
T: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for ()
[src]
impl DebugWith for ()
fn fmt_with<Cx: ?Sized>(&self, _cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl<A, B> DebugWith for (A, B) where
A: DebugWith,
B: DebugWith,
[src]
impl<A, B> DebugWith for (A, B) where
A: DebugWith,
B: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl<A, B, C> DebugWith for (A, B, C) where
A: DebugWith,
B: DebugWith,
C: DebugWith,
[src]
impl<A, B, C> DebugWith for (A, B, C) where
A: DebugWith,
B: DebugWith,
C: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl<A, B, C, D> DebugWith for (A, B, C, D) where
A: DebugWith,
B: DebugWith,
C: DebugWith,
D: DebugWith,
[src]
impl<A, B, C, D> DebugWith for (A, B, C, D) where
A: DebugWith,
B: DebugWith,
C: DebugWith,
D: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl<T: ?Sized, '_> DebugWith for &'_ T where
T: DebugWith,
[src]
impl<T: ?Sized, '_> DebugWith for &'_ T where
T: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl<T: ?Sized, '_> DebugWith for &'_ mut T where
T: DebugWith,
[src]
impl<T: ?Sized, '_> DebugWith for &'_ mut T where
T: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl<T> DebugWith for Option<T> where
T: DebugWith,
[src]
impl<T> DebugWith for Option<T> where
T: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl<O, E> DebugWith for Result<O, E> where
O: DebugWith,
E: DebugWith,
[src]
impl<O, E> DebugWith for Result<O, E> where
O: DebugWith,
E: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl<K, V, E> DebugWith for IndexMap<K, V, E> where
K: DebugWith + Hash + Eq,
V: DebugWith,
E: BuildHasher,
[src]
impl<K, V, E> DebugWith for IndexMap<K, V, E> where
K: DebugWith + Hash + Eq,
V: DebugWith,
E: BuildHasher,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl<T> DebugWith for Arc<T> where
T: DebugWith,
[src]
impl<T> DebugWith for Arc<T> where
T: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl<T> DebugWith for Box<T> where
T: DebugWith,
[src]
impl<T> DebugWith for Box<T> where
T: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl<T> DebugWith for Rc<T> where
T: DebugWith,
[src]
impl<T> DebugWith for Rc<T> where
T: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for !
[src]
impl DebugWith for !
fn fmt_with<Cx: ?Sized>(&self, _cx: &Cx, _fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl<T> DebugWith for [T] where
T: DebugWith,
[src]
impl<T> DebugWith for [T] where
T: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for i8
[src]
impl DebugWith for i8
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for i16
[src]
impl DebugWith for i16
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for i32
[src]
impl DebugWith for i32
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for i64
[src]
impl DebugWith for i64
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for isize
[src]
impl DebugWith for isize
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for u8
[src]
impl DebugWith for u8
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for u16
[src]
impl DebugWith for u16
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for u32
[src]
impl DebugWith for u32
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for u64
[src]
impl DebugWith for u64
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for usize
[src]
impl DebugWith for usize
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for char
[src]
impl DebugWith for char
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for bool
[src]
impl DebugWith for bool
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for String
[src]
impl DebugWith for String
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |
impl DebugWith for str
[src]
impl DebugWith for str
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx: ?Sized, 'me>( | [src] |
fn into_debug_with<Cx: ?Sized, 'me>( | [src] |