pub struct DebugSql<'a, T: Render> { /* private fields */ }Expand description
Display adapter for the opt-in debug path: pairs a node with a resolver-only,
tolerant RenderCtx so a detached node can be printed for debugging without
building a full context (the debug-SQL mitigation).
Unlike Displayed, this owns its context (built from the resolver alone), so
RenderExt::debug_sql can return it directly. Rendering is tolerant: an
unknown symbol becomes the UNRESOLVED_SYMBOL placeholder and literals use their kind-based
spelling, so it never panics on a symbol or span the context cannot back. See
debug_sql for when to prefer the canonical path.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for DebugSql<'a, T>
impl<'a, T> !Send for DebugSql<'a, T>
impl<'a, T> !Sync for DebugSql<'a, T>
impl<'a, T> !UnwindSafe for DebugSql<'a, T>
impl<'a, T> Freeze for DebugSql<'a, T>
impl<'a, T> Unpin for DebugSql<'a, T>
impl<'a, T> UnsafeUnpin for DebugSql<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more