From 63cf36149635156013f0324b660bf4d362beb87f Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 25 Jun 2021 18:14:19 +0200 Subject: Make font take everything as keyword arguments --- src/eval/value.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/eval') 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 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 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)* -- cgit v1.2.3