Skip to main content

LabelsHelper

Trait LabelsHelper 

Source
pub trait LabelsHelper {
    // Required methods
    fn names(&self) -> Vec<&str>;
    fn id_of(&self, n: &str) -> Option<&str>;
}

Required Methods§

Source

fn names(&self) -> Vec<&str>

Source

fn id_of(&self, n: &str) -> Option<&str>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl LabelsHelper for Vec<Label>

Source§

fn names(&self) -> Vec<&str>

Source§

fn id_of(&self, n: &str) -> Option<&str>

Implementors§