summaryrefslogtreecommitdiff
path: root/src/eval
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-25 18:14:19 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-25 18:14:19 +0200
commit63cf36149635156013f0324b660bf4d362beb87f (patch)
tree252d63dafe6da81e04d8b3c0f2aadde29c2c41e7 /src/eval
parentef279fa6673ebf7aaf5bfb26354db66d6dcec302 (diff)
Make font take everything as keyword arguments
Diffstat (limited to 'src/eval')
-rw-r--r--src/eval/value.rs4
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)*