Trait lang_util::node::NodeDisplay
source · pub trait NodeDisplay: Sized {
// Required methods
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;
fn display_children(&self, level: usize, f: &mut Formatter<'_>) -> Result;
}
Expand description
Trait for displaying a syntax node
Required Methods§
sourcefn display(&self) -> NodeDisplayWrapper<'_, Self>
fn display(&self) -> NodeDisplayWrapper<'_, Self>
Obtain a display wrapper for the current node
sourcefn display_extra(&self, f: &mut Formatter<'_>) -> Result
fn display_extra(&self, f: &mut Formatter<'_>) -> Result
Object Safety§
This trait is not object safe.