pub fn write<W: fmt::Write>(self, sink: &mut W, true_string: &str, false_string: &str) -> fmt::Result {
        match self.0 {
            N::B(true) => sink.write_str(true_string),
            N::B(false) => sink.write_str(false_string),
            N::I(v) => write!(sink, "{}", v),
            N::F(v) => {
                let mut output = ryu::Buffer::new();
                sink.write_str(output.format_finite(v))
            }
        }
    }
/// Writes this number into a format writer.
Writes this number into a format writer.
Writes this number into a format writer .
pub fn write<W: fmt::Write>(self, sink: &mut W, true_string: &str, false_string: &str) -> fmt::Result {
        match self.0 {
            N::B(true) => sink.write_str(true_string),
            N::B(false) => sink.write_str(false_string),
            N::I(v) => write!(sink, "{}", v),
            N::F(v) => {
                let mut output = ryu::Buffer::new();
                sink.write_str(output.format_finite(v))
            }
        }
    }
pub fn write < W : fmt :: Write > ( self , sink : & mut W , true_string : & str , false_string : & str ) -> fmt :: Result { match self . 0 { N :: B ( true ) => sink . write_str ( true_string ) , N :: B ( false ) => sink . write_str ( false_string ) , N :: I ( v ) => write ! ( sink " " v ) , N :: F ( v ) => { let mut output = ryu :: Buffer :: new ( ) ; sink . write_str ( output . format_finite ( v ) ) } } }
Writes this number into a format writer.
Writes this number into a format writer .
self
sink
&mut W
true_string
&str
false_string
&str
self
sink
&mut W
true_string
&str
false_string
&str