Source code

Revision control

Copy as Markdown

Other Tools

// generated by diplomat-tool
import type { Decimal } from "./Decimal"
import type { DecimalParseError } from "./DecimalParseError"
import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
/**
* See the [Rust documentation for `PluralOperands`](https://docs.rs/icu/latest/icu/plurals/struct.PluralOperands.html) for more information.
*/
export class PluralOperands {
get ffiValue(): pointer;
/**
* Construct for a given string representing a number
*
* See the [Rust documentation for `from_str`](https://docs.rs/icu/latest/icu/plurals/struct.PluralOperands.html#method.from_str) for more information.
*/
static fromString(s: string): PluralOperands;
/**
* Construct for a given integer
*/
static fromBigInt(i: bigint): PluralOperands;
/**
* Construct from a FixedDecimal
*
* Retains at most 18 digits each from the integer and fraction parts.
*/
static fromFixedDecimal(x: Decimal): PluralOperands;
}