Skip to main content

IntoNumberFArg

Trait IntoNumberFArg 

Source
pub trait IntoNumberFArg<M>: IntoFArg<M> { }
Expand description

Marker for IntoFArg values that carry a number, required for a Fluent variable used as a plural / select selector, where CLDR plural rules select on a number (so a string can’t be passed there by mistake). Implemented for the numeric IntoFArg types only (i64, f64, and their Signals); the generated res::str::<key>(…) functions (§18.5) type such parameters as impl IntoNumberFArg instead of impl IntoFArg.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoNumberFArg<SigM> for Signal<f64>

Source§

impl IntoNumberFArg<SigM> for Signal<i64>

Source§

impl IntoNumberFArg<ValM> for f64

Source§

impl IntoNumberFArg<ValM> for i64

Implementors§

Day API ↩ Guides· daybrite.dev