cargo_gazelle

Trait ToBazelDefinition

Source
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.

Required Methods§

Source

fn format(&self, writer: &mut dyn Write) -> Result<(), Error>

Provided Methods§

Implementations on Foreign Types§

Source§

impl ToBazelDefinition for bool

Source§

fn format(&self, writer: &mut dyn Write) -> Result<(), Error>

Source§

impl<T: ToBazelDefinition> ToBazelDefinition for Option<T>

Source§

fn format(&self, writer: &mut dyn Write) -> Result<(), Error>

Implementors§