docs: exact count of hand-written Styled methods
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1e2bcde532
commit
10ee6d1f21
1 file changed
+1
-1
+1
-1
@@ -430,7 +430,7 @@ gantt
|
|||||||
`Style::refined` returns a new style. Only `StyleRefinement` (what
|
`Style::refined` returns a new style. Only `StyleRefinement` (what
|
||||||
`Styled::style()` returns) is mutable, because it is the builder.
|
`Styled::style()` returns) is mutable, because it is the builder.
|
||||||
Nested updates are written as `style.text = { ..style.text, color: ... }`.
|
Nested updates are written as `style.text = { ..style.text, color: ... }`.
|
||||||
- `Styled` is one trait with 3,213 methods: about 140 hand-written in
|
- `Styled` is one trait with 3,213 methods: 132 hand-written in
|
||||||
`src/style/styled.mbt`, the rest generated as GPUI's macros would generate
|
`src/style/styled.mbt`, the rest generated as GPUI's macros would generate
|
||||||
them. GPUI's `text_style()` accessor (`&mut TextStyleRefinement`) is
|
them. GPUI's `text_style()` accessor (`&mut TextStyleRefinement`) is
|
||||||
omitted.
|
omitted.
|
||||||
|
|||||||
Reference in new issue
Block a user