• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// generated by diplomat-tool
2import wasm from "./diplomat-wasm.mjs";
3import * as diplomatRuntime from "./diplomat-runtime.mjs";
4
5
6/** Additional information: [1](https://docs.rs/fixed_decimal/latest/fixed_decimal/struct.LimitError.html)
7*/
8
9
10export class FixedDecimalLimitError {
11
12    /** Create `FixedDecimalLimitError` from an object that contains all of `FixedDecimalLimitError`s fields.
13    * Optional fields do not need to be included in the provided object.
14    */
15    static fromFields(structObj) {
16        return new FixedDecimalLimitError(structObj);
17    }
18
19    #internalConstructor(structObj) {
20        if (typeof structObj !== "object") {
21            throw new Error("FixedDecimalLimitError's constructor takes an object of FixedDecimalLimitError's fields.");
22        }
23
24        return this;
25    }
26
27
28    constructor(structObj) {
29        return this.#internalConstructor(...arguments)
30    }
31}