@@ -37,14 +37,6 @@ public extension WrapperTextStyle {
3737 @inlinable func locale( _ locale: Locale ) -> Self {
3838 var S0 = self ; S0 . base = S0 . base. locale ( locale) ; return S0
3939 }
40-
41- //=------------------------------------------------------------------------=
42- // MARK: Utilities
43- //=------------------------------------------------------------------------=
44-
45- @inlinable static func == ( lhs: Self , rhs: Self ) -> Bool {
46- lhs. base == rhs. base
47- }
4840}
4941
5042//=----------------------------------------------------------------------------=
@@ -76,18 +68,15 @@ public extension WrapperTextStyle where Cache == Base.Cache, Value == Base.Value
7668 // MARK: Utilities
7769 //=------------------------------------------------------------------------=
7870
79- @inlinable func format( _ value: Value ,
80- with cache: inout Cache ) -> String {
71+ @inlinable func format( _ value: Value , with cache: inout Cache ) -> String {
8172 base. format ( value, with: & cache)
8273 }
8374
84- @inlinable func interpret( _ value: Value ,
85- with cache: inout Cache ) -> Commit < Value > {
75+ @inlinable func interpret( _ value: Value , with cache: inout Cache ) -> Commit < Value > {
8676 base. interpret ( value, with: & cache)
8777 }
8878
89- @inlinable func resolve( _ proposal: Proposal ,
90- with cache: inout Cache ) throws -> Commit < Value > {
79+ @inlinable func resolve( _ proposal: Proposal , with cache: inout Cache ) throws -> Commit < Value > {
9180 try base. resolve ( proposal, with: & cache)
9281 }
9382}
@@ -96,52 +85,21 @@ public extension WrapperTextStyle where Cache == Base.Cache, Value == Base.Value
9685// MARK: + Details where Base: Nullable
9786//=----------------------------------------------------------------------------=
9887
99- public extension WrapperTextStyle where Cache == Base . Cache , Value == Base . Value ,
100- Self: NullableTextStyle , Base: NullableTextStyle {
101-
102- //=------------------------------------------------------------------------=
103- // MARK: Utilities
104- //=------------------------------------------------------------------------=
105-
106- @inlinable func format( optional value: Value ? ,
107- with cache: inout Cache ) -> String {
108- base. format ( optional: value, with: & cache)
109- }
110-
111- @inlinable func interpret( optional value: Value ? ,
112- with cache: inout Cache ) -> Commit < Value ? > {
113- base. interpret ( optional: value, with: & cache)
114- }
115-
116- @inlinable func resolve( optional proposal: Proposal ,
117- with cache: inout Cache ) throws -> Commit < Value ? > {
118- try base. resolve ( optional: proposal, with: & cache)
119- }
120- }
121-
122- //=----------------------------------------------------------------------------=
123- // MARK: + Details where Base: Nullable
124- //=----------------------------------------------------------------------------=
125-
126- public extension WrapperTextStyle where Cache == Base . Cache , Value == Base . Value ? ,
127- Base: NullableTextStyle {
88+ public extension WrapperTextStyle where Cache == Base . Cache , Value == Base . Value ? , Base: NullableTextStyle {
12889
12990 //=------------------------------------------------------------------------=
13091 // MARK: Utilities
13192 //=------------------------------------------------------------------------=
13293
133- @inlinable func format( _ value: Value ,
134- with cache: inout Cache ) -> String {
94+ @inlinable func format( _ value: Value , with cache: inout Cache ) -> String {
13595 base. format ( optional: value, with: & cache)
13696 }
13797
138- @inlinable func interpret( _ value: Value ,
139- with cache: inout Cache ) -> Commit < Value > {
98+ @inlinable func interpret( _ value: Value , with cache: inout Cache ) -> Commit < Value > {
14099 base. interpret ( optional: value, with: & cache)
141100 }
142101
143- @inlinable func resolve( _ proposal: Proposal ,
144- with cache: inout Cache ) throws -> Commit < Value > {
102+ @inlinable func resolve( _ proposal: Proposal , with cache: inout Cache ) throws -> Commit < Value > {
145103 try base. resolve ( optional: proposal, with: & cache)
146104 }
147105}
0 commit comments