summaryrefslogtreecommitdiff
path: root/src/values.rs
blob: a788dabb3ae3905ff9a65a03fd58f544820843af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod alignment;
mod length;
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;
}