@@ -64,6 +64,8 @@ pub enum Type {
6464
6565 /// This is a `SharedArray<f32>`
6666 LayoutCache ,
67+
68+ StyledText ,
6769}
6870
6971impl core:: cmp:: PartialEq for Type {
@@ -104,6 +106,7 @@ impl core::cmp::PartialEq for Type {
104106 Type :: UnitProduct ( a) => matches ! ( other, Type :: UnitProduct ( b) if a == b) ,
105107 Type :: ElementReference => matches ! ( other, Type :: ElementReference ) ,
106108 Type :: LayoutCache => matches ! ( other, Type :: LayoutCache ) ,
109+ Type :: StyledText => matches ! ( other, Type :: StyledText ) ,
107110 }
108111 }
109112}
@@ -178,6 +181,7 @@ impl Display for Type {
178181 }
179182 Type :: ElementReference => write ! ( f, "element ref" ) ,
180183 Type :: LayoutCache => write ! ( f, "layout cache" ) ,
184+ Type :: StyledText => write ! ( f, "styled-text" ) ,
181185 }
182186 }
183187}
@@ -213,6 +217,7 @@ impl Type {
213217 | Self :: Array ( _)
214218 | Self :: Brush
215219 | Self :: InferredProperty
220+ | Self :: StyledText
216221 )
217222 }
218223
@@ -314,6 +319,7 @@ impl Type {
314319 Type :: UnitProduct ( _) => None ,
315320 Type :: ElementReference => None ,
316321 Type :: LayoutCache => None ,
322+ Type :: StyledText => None ,
317323 }
318324 }
319325
0 commit comments