/// Returns a human-readable representation of the tag.
/// The format is roughly this:
/// ```text
/// tag "<namespace>:<name>": <values>, <attributes>
/// * <subtag_1>
///   * <subtag_1_subtag>
///   * ...
/// * <subtag_2>
/// * ...
/// ```
Returns a human-readable representation of the tag.
Returns a human - readable representation of the tag .
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(
            f,
            "tag \"{}\": {}{}",
            self.namespace
                .iter()
                .chain(iter::once(&self.name))
                .format(":"),
            self.values
                .iter()
                .map(|v| v.to_string())
                .chain(self.attrs.iter().map(|a| format!("[{}]", a)))
                .format(", "),
            self.tags.iter().format_with("", |t, f| f(&format_args!(
                "\n* {}",
                t.to_string().replace('\n', "\n  ")
            ))),
        )
    }
fn fmt ( & self , f : & mut fmt :: Formatter ) -> fmt :: Result { write ! ( f " \" \" " self namespace iter ( ) chain ( iter once ( self name ) ) format ( " " ) self values iter ( ) map ( v v to_string ( ) ) chain ( self attrs iter ( ) map ( a format ( " " a ) ) ) format ( " " ) self tags iter ( ) format_with ( " " t f f ( format_args ( " \n " t to_string ( ) replace ( '\n' " \n " ) ) ) ) ) }
Returns a human-readable representation of the tag.
Returns a human - readable representation of the tag .
&self
f
&mut fmt::Formatter