fn format(&self, f: &mut fmt::Formatter) -> fmt::Result {
        f.write_str(self.major())?;
        f.write_char('.')?;
        f.write_str(self.minor())?;
        f.write_char('.')?;
        f.write_str(self.patch())?;
        if !self.pre().is_empty() {
            f.write_char('-')?;
            f.write_str(self.pre())?;
        }
        Ok(())
    }
/// Formats this `Version` as a string.
///
/// This method is intended to be used as the default implementation of
/// the `Display` trait on your own `Version` type. Your implementation
/// of the `Display` trait for your own `Version` type can simple delegate
/// to calling this method.
Formats this `Version` as a string.
This method is intended to be used as the default implementation of
the `Display` trait on your own `Version` type. Your implementation
of the `Display` trait for your own `Version` type can simple delegate
to calling this method.
Formats this ` Version ` as a string . This method is intended to be used as the default implementation of the ` Display ` trait on your own ` Version ` type . Your implementation of the ` Display ` trait for your own ` Version ` type can simple delegate to calling this method .
fn format(&self, f: &mut fmt::Formatter) -> fmt::Result {
        f.write_str(self.major())?;
        f.write_char('.')?;
        f.write_str(self.minor())?;
        f.write_char('.')?;
        f.write_str(self.patch())?;
        if !self.pre().is_empty() {
            f.write_char('-')?;
            f.write_str(self.pre())?;
        }
        Ok(())
    }
fn format ( & self , f : & mut fmt :: Formatter ) -> fmt :: Result { f . write_str ( self . major ( ) ) ? ; f . write_char ( '.' ) ? ; f . write_str ( self . minor ( ) ) ? ; f . write_char ( '.' ) ? ; f . write_str ( self . patch ( ) ) ? ; if ! self . pre ( ) . is_empty ( ) { f . write_char ( '-' ) ? ; f . write_str ( self . pre ( ) ) ? ; } Ok ( ( ) ) }
Formats this `Version` as a string.
Formats this ` Version ` as a string .
&self
f
&mut fmt::Formatter
&self
f
&mut fmt::Formatter