pub struct NfOptions {Show 22 fields
pub locale: String,
pub style: Style,
pub currency: String,
pub currency_display: u8,
pub unit: String,
pub unit_display: u8,
pub notation: Notation,
pub compact_long: bool,
pub sign: SignDisplay,
pub grouping: Grouping,
pub min_int: usize,
pub min_frac: usize,
pub max_frac: usize,
pub min_sig: usize,
pub max_sig: usize,
pub compact_round: bool,
pub rounding_mode: RoundingMode,
pub rounding_increment: u32,
pub rounding_priority: u8,
pub strip_if_integer: bool,
pub numbering_system: String,
pub accounting: bool,
}Expand description
書式の設定(Intl.NumberFormat の解決済みオプション)。
Fields§
§locale: String解決したロケール(en-US など)。
style: Style§currency: String通貨コード(大文字 3 文字)。
currency_display: u80: symbol・1: narrowSymbol・2: code・3: name。
unit: String§unit_display: u80: short・1: narrow・2: long。
notation: Notation§compact_long: bool§sign: SignDisplay§grouping: Grouping§min_int: usize§min_frac: usize§max_frac: usize§min_sig: usize有効桁数で丸めるとき(max_sig > 0)。
max_sig: usize§compact_round: boolコンパクト表記の既定の丸め(桁数の指定が無いとき)。
rounding_mode: RoundingMode§rounding_increment: u32丸めの増分(1・2・5・10・…・5000)。
rounding_priority: u80: auto・1: morePrecision・2: lessPrecision(小数桁と有効桁の両方で丸めて選ぶ)。
strip_if_integer: booltrailingZeroDisplay: "stripIfInteger"。
numbering_system: String数字の体系(latn・arab など)。
accounting: boolcurrencySign: "accounting"(負の数を括弧で囲む)。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NfOptions
impl RefUnwindSafe for NfOptions
impl Send for NfOptions
impl Sync for NfOptions
impl Unpin for NfOptions
impl UnsafeUnpin for NfOptions
impl UnwindSafe for NfOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more