| ... | ... | @@ -2249,16 +2249,11 @@ pub const StringifyOptions = struct { |
| 2249 | 2249 | // TODO: allow picking if []u8 is string or array? |
| 2250 | 2250 | }; |
| 2251 | 2251 | |
| 2252 | | pub const StringifyError = error{ |
| 2253 | | TooMuchData, |
| 2254 | | DifferentData, |
| 2255 | | }; |
| 2256 | | |
| 2257 | 2252 | pub fn stringify( |
| 2258 | 2253 | value: var, |
| 2259 | 2254 | options: StringifyOptions, |
| 2260 | 2255 | out_stream: var, |
| 2261 | | ) StringifyError!void { |
| 2256 | ) @TypeOf(out_stream).Error!void { |
| 2262 | 2257 | const T = @TypeOf(value); |
| 2263 | 2258 | switch (@typeInfo(T)) { |
| 2264 | 2259 | .Float, .ComptimeFloat => { |