Trait scopegraphs::Label

source ·
pub trait Label {
    // Required methods
    fn iter() -> impl Iterator<Item = Self>
       where Self: Sized;
    fn iter_ref() -> impl Iterator<Item = &'static Self>
       where Self: Sized + 'static;
}
Expand description

Represents types that can be used as labels on scopegraph edges.

Can be derived.

Required Methods§

source

fn iter() -> impl Iterator<Item = Self>
where Self: Sized,

Iterate over all possible labels that this label type could be.

source

fn iter_ref() -> impl Iterator<Item = &'static Self>
where Self: Sized + 'static,

Iterate over all possible labels that this label type could be, by reference.

Implementors§