diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-25 18:14:19 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-25 18:14:19 +0200 |
| commit | 63cf36149635156013f0324b660bf4d362beb87f (patch) | |
| tree | 252d63dafe6da81e04d8b3c0f2aadde29c2c41e7 /src/eval | |
| parent | ef279fa6673ebf7aaf5bfb26354db66d6dcec302 (diff) | |
Make font take everything as keyword arguments
Diffstat (limited to 'src/eval')
| -rw-r--r-- | src/eval/value.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval/value.rs b/src/eval/value.rs index b29d01f3..dda1c3e1 100644 --- a/src/eval/value.rs +++ b/src/eval/value.rs @@ -662,7 +662,7 @@ impl From<AnyValue> for Value { } } -/// Mark a type as a [`Value`]. +/// Make a type castable from a value. /// /// Given a type `T`, this implements the following traits: /// - [`Type`] for `T`, @@ -684,7 +684,7 @@ impl From<AnyValue> for Value { /// This would allow the type `FontFamily` to be cast from: /// - a [`Value::Any`] variant already containing a `FontFamily`, /// - a string, producing a named font family. -macro_rules! value { +macro_rules! castable { ($type:ty: $type_name:literal $(, $pattern:pat => $out:expr)* |
