+ /**
+ * Utility method to constructs a new Bounded-variant Quantity
+ */
+ public static constructor_bounded(a: bigint): Quantity {
+ const ret: bigint = bindings.Quantity_bounded(a);
+ const ret_hu_conv: Quantity = Quantity.constr_from_ptr(ret);
+ CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Utility method to constructs a new Unbounded-variant Quantity
+ */
+ public static constructor_unbounded(): Quantity {
+ const ret: bigint = bindings.Quantity_unbounded();
+ const ret_hu_conv: Quantity = Quantity.constr_from_ptr(ret);
+ CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Utility method to constructs a new One-variant Quantity
+ */
+ public static constructor_one(): Quantity {
+ const ret: bigint = bindings.Quantity_one();
+ const ret_hu_conv: Quantity = Quantity.constr_from_ptr(ret);
+ CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+}
+/** A Quantity of type Bounded */
+export class Quantity_Bounded extends Quantity {
+ public bounded: bigint;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ this.bounded = bindings.LDKQuantity_Bounded_get_bounded(ptr);
+ }
+}
+/** A Quantity of type Unbounded */
+export class Quantity_Unbounded extends Quantity {
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ }
+}
+/** A Quantity of type One */
+export class Quantity_One extends Quantity {
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ }