Trait Label

Source
pub trait Label:
    Hash
    + Eq
    + Clone
    + Display {
    // Required method
    fn label(&self) -> &str;
}
Expand description

Label for Node

Required Methods§

Source

fn label(&self) -> &str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Label for String

Source§

fn label(&self) -> &str

Implementors§