pub fn pass_attr(
writer: &mut impl Write,
attr: &Attribute,
is_inner: bool,
indent: usize,
) -> Result<()>Expand description
Prints an attribute.
§Arguments
writer: TheWriter to write to.attr: TheAttributeto traverse.is_inner: If true, prints as an inner attribute (i.e.,#![...]instead of#[...]).indent: The current base indentation of all new lines to write.
§Errors
This function may error if we failed to write to writer.