Trait HasDesc

Source
pub trait HasDesc {
    // Required method
    fn desc(&self) -> &'static str;

    // Provided method
    fn desc_full(&self) -> String { ... }
}
Expand description

Describes syntax nodes.

Required Methods§

Source

fn desc(&self) -> &'static str

Obtain a human-readable descriptive name for this node.

Provided Methods§

Source

fn desc_full(&self) -> String

Obtain a human-readable description for this node, possibly containing the node’s name.

Implementors§

Source§

impl<T> HasDesc for Spanned<T>
where T: HasDesc,