summaryrefslogtreecommitdiff
path: root/src/values.rs
blob: 62997adcd991270323daec3773c9b762232c6501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod alignment;
mod content_fit;
mod length;
mod line_height;
mod padding;
mod pixels;
mod rotation;
mod sizing;

pub trait Value: Sized {
    type Err;

    fn from_str(s: &str) -> Result<Self, Self::Err>;

    // TODO: remove this once RenderedElement's options field is redone
    #[allow(dead_code)]
    fn to_string(&self) -> String;
}