Trait branchless::core::node_descriptors::NodeDescriptor
source · pub trait NodeDescriptor {
// Required method
fn describe_node(
&mut self,
glyphs: &Glyphs,
object: &NodeObject<'_>
) -> Result<Option<StyledString>>;
}
Expand description
Interface to display information about a node in the smartlog.
Required Methods§
sourcefn describe_node(
&mut self,
glyphs: &Glyphs,
object: &NodeObject<'_>
) -> Result<Option<StyledString>>
fn describe_node( &mut self, glyphs: &Glyphs, object: &NodeObject<'_> ) -> Result<Option<StyledString>>
Provide a description of the given commit.
A return value of None
indicates that this commit descriptor was
inapplicable for the provided commit.