diff options
Diffstat (limited to 'src/model/value.rs')
| -rw-r--r-- | src/model/value.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/model/value.rs b/src/model/value.rs index 98d11e15..1c687d8d 100644 --- a/src/model/value.rs +++ b/src/model/value.rs @@ -6,7 +6,9 @@ use std::sync::Arc; use siphasher::sip128::{Hasher128, SipHasher}; -use super::{format_str, ops, Args, Array, Cast, Content, Dict, Func, Label, Str}; +use super::{ + format_str, ops, Args, Array, Cast, CastInfo, Content, Dict, Func, Label, Str, +}; use crate::diag::StrResult; use crate::geom::{Abs, Angle, Color, Em, Fr, Length, Ratio, Rel, RgbaColor}; use crate::util::{format_eco, EcoString}; @@ -351,6 +353,10 @@ macro_rules! primitive { )), } } + + fn describe() -> CastInfo { + CastInfo::Type(Self::TYPE_NAME) + } } impl From<$type> for Value { |
