1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
use crate::Property;
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;

#[derive(Clone, Debug, Default)]
pub struct SelectFont<'a> {
    pub rejects: Vec<FontMatch<'a>>,
    pub accepts: Vec<FontMatch<'a>>,
}

#[derive(Clone, Debug)]
pub enum FontMatch<'a> {
    Glob(&'a str),
    Pattern(Vec<Property<'a>>),
}