Function brane_ast::traversals::print::dsl::pass_attr

source ·
pub fn pass_attr(
    writer: &mut impl Write,
    attr: &Attribute,
    is_inner: bool,
    indent: usize,
) -> Result<()>
Expand description

Prints an attribute.

§Arguments

  • writer: The Writer to write to.
  • attr: The Attribute to 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.