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§
sourcefn iter() -> impl Iterator<Item = Self>where
Self: Sized,
fn iter() -> impl Iterator<Item = Self>where
Self: Sized,
Iterate over all possible labels that this label type could be.
sourcefn iter_ref() -> impl Iterator<Item = &'static Self>where
Self: Sized + 'static,
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.