summaryrefslogtreecommitdiff
path: root/src/values.rs
diff options
context:
space:
mode:
authorPolesznyák Márk László <116908301+pml68@users.noreply.github.com>2025-03-23 02:49:57 +0100
committerGitHub <noreply@github.com>2025-03-23 02:49:57 +0100
commit3076889c00116b22f022792471253e7188c6e93e (patch)
treebff0cda7a9152e9f94d3176bbf5acaf879394f5f /src/values.rs
parentfeat: update to Rust 2024 (diff)
parentfeat: finish `ApplyOptions` impls (diff)
downloadiced-builder-3076889c00116b22f022792471253e7188c6e93e.tar.gz
Merge pull request #7 from pml68/feat/options-backend
Options backend done (for now)
Diffstat (limited to 'src/values.rs')
-rw-r--r--src/values.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/values.rs b/src/values.rs
new file mode 100644
index 0000000..d2dae74
--- /dev/null
+++ b/src/values.rs
@@ -0,0 +1,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;
+}