@@ -18,6 +18,7 @@ func (f DefaultOptionImpl[IT, DC, DOPTT]) ApplyDefaultOption(o *DOPTT) {
1818 f .f (o )
1919}
2020
21+ // DefaultOptionFunc is the option constructor for DefaultOption.
2122func DefaultOptionFunc [IT any , DC instruct.DecodeContext , DOPTT any ](f func (o * DOPTT )) * DefaultOptionImpl [IT , DC , DOPTT ] {
2223 return & DefaultOptionImpl [IT , DC , DOPTT ]{f }
2324}
@@ -36,6 +37,7 @@ func (f TypeDefaultOptionImpl[IT, DC, TOPTT]) ApplyTypeDefaultOption(o *TOPTT) {
3637 f .tf (o )
3738}
3839
40+ // TypeDefaultOptionFunc is the option constructor for TypeDefaultOption.
3941func TypeDefaultOptionFunc [IT any , DC instruct.DecodeContext , TOPTT any ](tf func (o * TOPTT )) * TypeDefaultOptionImpl [IT , DC , TOPTT ] {
4042 return & TypeDefaultOptionImpl [IT , DC , TOPTT ]{tf }
4143}
@@ -54,6 +56,7 @@ func (f DecodeOptionImpl[IT, DC, COPTT]) ApplyDecodeOption(o *COPTT) {
5456 f .f (o )
5557}
5658
59+ // DecodeOptionFunc is the option constructor for DecodeOption.
5760func DecodeOptionFunc [IT any , DC instruct.DecodeContext , COPTT any ](f func (o * COPTT )) * DecodeOptionImpl [IT , DC , COPTT ] {
5861 return & DecodeOptionImpl [IT , DC , COPTT ]{f }
5962}
@@ -72,6 +75,7 @@ func (f TypeDecodeOptionImpl[IT, DC, COPTT]) ApplyTypeDecodeOption(o *COPTT) {
7275 f .f (o )
7376}
7477
78+ // TypeDecodeOptionFunc is the option constructor for TypeDecodeOption.
7579func TypeDecodeOptionFunc [IT any , DC instruct.DecodeContext , COPTT any ](f func (o * COPTT )) * TypeDecodeOptionImpl [IT , DC , COPTT ] {
7680 return & TypeDecodeOptionImpl [IT , DC , COPTT ]{f }
7781}
@@ -96,6 +100,7 @@ func (f DefaultAndTypeDefaultOptionImpl[IT, DC, DOPTT, TOPTT]) ApplyTypeDefaultO
96100 f .tf (o )
97101}
98102
103+ // DefaultAndTypeDefaultOptionFunc is the option constructor for DefaultAndTypeDefaultOption.
99104func DefaultAndTypeDefaultOptionFunc [IT any , DC instruct.DecodeContext , DOPTT any , TOPTT any ](df func (o * DOPTT ), tf func (o * TOPTT )) * DefaultAndTypeDefaultOptionImpl [IT , DC , DOPTT , TOPTT ] {
100105 return & DefaultAndTypeDefaultOptionImpl [IT , DC , DOPTT , TOPTT ]{df , tf }
101106}
@@ -119,6 +124,7 @@ func (f DefaultAndDecodeOptionImpl[IT, DC, TOPTT, COPTT]) ApplyDecodeOption(o *C
119124 f .cf (o )
120125}
121126
127+ // DefaultAndDecodeOptionFunc is the option constructor for DefaultAndDecodeOption.
122128func DefaultAndDecodeOptionFunc [IT any , DC instruct.DecodeContext , TOPTT any , COPTT any ](tf func (o * TOPTT ), cf func (o * COPTT )) * DefaultAndDecodeOptionImpl [IT , DC , TOPTT , COPTT ] {
123129 return & DefaultAndDecodeOptionImpl [IT , DC , TOPTT , COPTT ]{tf , cf }
124130}
@@ -142,6 +148,7 @@ func (f TypeDefaultAndTypeDecodeOptionImpl[IT, DC, TOPTT, COPTT]) ApplyTypeDecod
142148 f .cf (o )
143149}
144150
151+ // TypeDefaultAndTypeDecodeOptionFunc is the option constructor for TypeDefaultAndTypeDecodeOption.
145152func TypeDefaultAndTypeDecodeOptionFunc [IT any , DC instruct.DecodeContext , TOPTT any , COPTT any ](tf func (o * TOPTT ), cf func (o * COPTT )) * TypeDefaultAndTypeDecodeOptionImpl [IT , DC , TOPTT , COPTT ] {
146153 return & TypeDefaultAndTypeDecodeOptionImpl [IT , DC , TOPTT , COPTT ]{tf , cf }
147154}
@@ -166,6 +173,7 @@ func (f TypeDefaultAndDecodeOptionImpl[IT, DC, TOPTT, COPTT]) ApplyDecodeOption(
166173 f .cf (o )
167174}
168175
176+ // TypeDefaultAndDecodeOptionFunc is the option constructor for TypeDefaultAndDecodeOption.
169177func TypeDefaultAndDecodeOptionFunc [IT any , DC instruct.DecodeContext , TOPTT any , COPTT any ](tf func (o * TOPTT ), cf func (o * COPTT )) * TypeDefaultAndDecodeOptionImpl [IT , DC , TOPTT , COPTT ] {
170178 return & TypeDefaultAndDecodeOptionImpl [IT , DC , TOPTT , COPTT ]{tf , cf }
171179}
@@ -200,6 +208,7 @@ func (f FullOptionImpl[IT, DC, DOPTT, TOPTT, DCOPTT, TCOPTT]) ApplyTypeDecodeOpt
200208 f .tcf (o )
201209}
202210
211+ // FullOptionFunc is the option constructor for FullOption.
203212func FullOptionFunc [IT any , DC instruct.DecodeContext , DOPTT any , TOPTT any , DCOPTT any , TCOPTT any ](df func (o * DOPTT ),
204213 tf func (o * TOPTT ), dcf func (o * DCOPTT ), tcf func (o * TCOPTT )) * FullOptionImpl [IT , DC , DOPTT , TOPTT , DCOPTT , TCOPTT ] {
205214 return & FullOptionImpl [IT , DC , DOPTT , TOPTT , DCOPTT , TCOPTT ]{df , tf , dcf , tcf }
0 commit comments