fn make_fixed_text(&self, ctx: &Context<Self>) -> String {
        let fixed = match self.config.fixed {
            Some(x) if x > 0 => format!("0.{}1", "0".repeat(x as usize - 1)),
            None if ctx.props().default_config.fixed > 0 => {
                let n = ctx.props().default_config.fixed as usize - 1;
                format!("0.{}1", "0".repeat(n))
            }
            Some(_) | None => "1".to_owned(),
        };

        format!("Prec {}", fixed)
    }
/// Human readable precision hint, e.g. "Prec 0.001" for `{fixed: 3}`.
Human readable precision hint, e.g.
Human readable precision hint e . g .
fn make_fixed_text(&self, ctx: &Context<Self>) -> String {
        let fixed = match self.config.fixed {
            Some(x) if x > 0 => format!("0.{}1", "0".repeat(x as usize - 1)),
            None if ctx.props().default_config.fixed > 0 => {
                let n = ctx.props().default_config.fixed as usize - 1;
                format!("0.{}1", "0".repeat(n))
            }
            Some(_) | None => "1".to_owned(),
        };
        format!("Prec {}", fixed)
    }
fn make_fixed_text ( & self , ctx : & Context < Self > ) -> String { let fixed = match self . config . fixed { Some ( x ) if x > 0 => format ! ( " " " " repeat ( x as usize 1 ) ) , None if ctx . props ( ) . default_config . fixed > 0 => { let n = ctx . props ( ) . default_config . fixed as usize - 1 ; format ! ( " " " " repeat ( n ) ) } Some ( _ ) | None => " " . to_owned ( ) , } ; format ! ( " " fixed ) }
Human readable precision hint, e.g.
Human readable precision hint e . g .
&self
ctx
&Context<Self>
&self
ctx
&Context<Self>