pub trait PtxUnparser {
// Required method
fn unparse_tokens(&self, tokens: &mut Vec<PtxToken>);
// Provided method
fn to_tokens(&self) -> Vec<PtxToken> { ... }
}Expand description
Trait that mirrors crate::parser::PtxParser but for emitting PTX source
text from the structured representation.
Required Methods§
Sourcefn unparse_tokens(&self, tokens: &mut Vec<PtxToken>)
fn unparse_tokens(&self, tokens: &mut Vec<PtxToken>)
Append the PTX token sequence representing self to tokens.