fn format(&self, f: &mut fmt::Formatter) -> fmt::Result {
        f.write_str(self.name())?;
        f.write_str(" v")?;
        self.version().format(f)?;
        if !self.homepage().is_empty() {
            f.write_str(", ")?;
            f.write_str(self.homepage())?;
        }
        Ok(())
    }
/// Formats this `UserAgent` as a string.
///
/// This method is intended to be used as the default implementation of
/// the `Display` trait for your own `UserAgent` type. Your implementation
/// of the `Display` trait for your own `UserAgent` type can simple delegate
/// to calling this method.
Formats this `UserAgent` as a string.
This method is intended to be used as the default implementation of
the `Display` trait for your own `UserAgent` type. Your implementation
of the `Display` trait for your own `UserAgent` type can simple delegate
to calling this method.
Formats this ` UserAgent ` as a string . This method is intended to be used as the default implementation of the ` Display ` trait for your own ` UserAgent ` type . Your implementation of the ` Display ` trait for your own ` UserAgent ` type can simple delegate to calling this method .
fn format(&self, f: &mut fmt::Formatter) -> fmt::Result {
        f.write_str(self.name())?;
        f.write_str(" v")?;
        self.version().format(f)?;
        if !self.homepage().is_empty() {
            f.write_str(", ")?;
            f.write_str(self.homepage())?;
        }
        Ok(())
    }
fn format ( & self , f : & mut fmt :: Formatter ) -> fmt :: Result { f . write_str ( self . name ( ) ) ? ; f . write_str ( " " ) ? ; self . version ( ) . format ( f ) ? ; if ! self . homepage ( ) . is_empty ( ) { f . write_str ( " " ) ? ; f . write_str ( self . homepage ( ) ) ? ; } Ok ( ( ) ) }
Formats this `UserAgent` as a string.
Formats this ` UserAgent ` as a string .
&self
f
&mut fmt::Formatter
&self
f
&mut fmt::Formatter