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

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;
}