pub trait ToBazelDefinition: Debug {
// Required method
fn format(&self, writer: &mut dyn Write) -> Result<(), Error>;
// Provided method
fn to_bazel_definition(&self) -> String { ... }
}
Expand description
Formatting trait for converting a type to its BUILD.bazel
representation.