pub struct DebugInfo<'a> {
pub stage: &'static str,
pub flow: &'a str,
pub snippet: &'a str,
}Expand description
What debug’s callback is handed: three’s
callback( builder, snippet ), with the two things of the builder a
debugging callback reads.
Fields§
§stage: &'static strbuilder.shaderStage: "vertex", "fragment" or "compute".
flow: &'a strbuilder.flow.code: the statements emitted so far in the current
scope (the stage’s main, or the Fn() being built), one per line,
with one level of indentation removed.
snippet: &'a strThe debugged node’s snippet, which is also the debug node’s own.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DebugInfo<'a>
impl<'a> RefUnwindSafe for DebugInfo<'a>
impl<'a> Send for DebugInfo<'a>
impl<'a> Sync for DebugInfo<'a>
impl<'a> Unpin for DebugInfo<'a>
impl<'a> UnsafeUnpin for DebugInfo<'a>
impl<'a> UnwindSafe for DebugInfo<'a>
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