pub fn write_io(self, sink: &mut dyn io::Write, true_string: &str, false_string: &str) -> io::Result<()> {
        match self.0 {
            N::B(true) => sink.write_all(true_string.as_bytes()),
            N::B(false) => sink.write_all(false_string.as_bytes()),
            N::I(v) => write!(sink, "{}", v),
            N::F(v) => {
                let mut output = ryu::Buffer::new();
                sink.write_all(output.format_finite(v).as_bytes())
            }
        }
    }
/// Writes this number into an I/O writer.
Writes this number into an I/O writer.
Writes this number into an I / O writer .
pub fn write_io(self, sink: &mut dyn io::Write, true_string: &str, false_string: &str) -> io::Result<()> {
        match self.0 {
            N::B(true) => sink.write_all(true_string.as_bytes()),
            N::B(false) => sink.write_all(false_string.as_bytes()),
            N::I(v) => write!(sink, "{}", v),
            N::F(v) => {
                let mut output = ryu::Buffer::new();
                sink.write_all(output.format_finite(v).as_bytes())
            }
        }
    }
pub fn write_io ( self , sink : & mut dyn io :: Write , true_string : & str , false_string : & str ) -> io :: Result < ( ) > { match self . 0 { N :: B ( true ) => sink . write_all ( true_string . as_bytes ( ) ) , N :: B ( false ) => sink . write_all ( false_string . as_bytes ( ) ) , N :: I ( v ) => write ! ( sink " " v ) , N :: F ( v ) => { let mut output = ryu :: Buffer :: new ( ) ; sink . write_all ( output . format_finite ( v ) . as_bytes ( ) ) } } }
Writes this number into an I/O writer.
Writes this number into an I / O writer .
self
sink
&mut dyn io::Write
true_string
&str
false_string
&str
self
sink
&mut dyn io::Write
true_string
&str
false_string
&str