Trait glsl_lang::ast::NodeDisplay
source · [−]pub trait NodeDisplay {
fn name() -> Option<&'static str>;
fn start(&self) -> Option<TextSize>;
fn end(&self) -> Option<TextSize>;
fn source_id(&self) -> Option<FileId>;
fn display(&self) -> NodeDisplayWrapper<'_, Self>;
fn display_extra(&self, f: &mut Formatter<'_>) -> Result<(), Error>;
fn display_children(
&self,
level: usize,
f: &mut Formatter<'_>
) -> Result<(), Error>;
}
Expand description
Trait for displaying a syntax node