1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use std::borrow::Cow;

use crate::A11yId;

#[derive(Debug, Clone, PartialEq)]
pub enum Description<'a> {
    Text(Cow<'a, str>),
    Id(Vec<A11yId>),
}

// Describes a widget
pub trait Describes {
    fn description(&self) -> Vec<A11yId>;
}

// Labels a widget
pub trait Labels {
    fn label(&self) -> Vec<A11yId>;
}