tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PluralOperands.d.ts (999B)


      1 // generated by diplomat-tool
      2 import type { Decimal } from "./Decimal"
      3 import type { DecimalParseError } from "./DecimalParseError"
      4 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      5 
      6 
      7 /**
      8 * See the [Rust documentation for `PluralOperands`](https://docs.rs/icu/latest/icu/plurals/struct.PluralOperands.html) for more information.
      9 */
     10 
     11 
     12 export class PluralOperands {
     13    get ffiValue(): pointer;
     14 
     15 
     16    /**
     17     * Construct for a given string representing a number
     18     *
     19     * See the [Rust documentation for `from_str`](https://docs.rs/icu/latest/icu/plurals/struct.PluralOperands.html#method.from_str) for more information.
     20     */
     21    static fromString(s: string): PluralOperands;
     22 
     23    /**
     24     * Construct for a given integer
     25     */
     26    static fromBigInt(i: bigint): PluralOperands;
     27 
     28    /**
     29     * Construct from a FixedDecimal
     30     *
     31     * Retains at most 18 digits each from the integer and fraction parts.
     32     */
     33    static fromFixedDecimal(x: Decimal): PluralOperands;
     34 }