pub struct BazelHeader {
loads: Vec<LoadStatement>,
}
Expand description
Header to include on a BUILD.bazel file.
Includes special text to indicate this file is generated, and imports any necessary Rust rules.
TODO(parkmycar): This works for now but should surely be refactored.
Fields§
§loads: Vec<LoadStatement>
Implementations§
Source§impl BazelHeader
impl BazelHeader
pub fn generate(targets: &[Box<dyn RustTarget>]) -> Self
Trait Implementations§
Source§impl Debug for BazelHeader
impl Debug for BazelHeader
Source§impl ToBazelDefinition for BazelHeader
impl ToBazelDefinition for BazelHeader
Auto Trait Implementations§
impl Freeze for BazelHeader
impl RefUnwindSafe for BazelHeader
impl Send for BazelHeader
impl Sync for BazelHeader
impl Unpin for BazelHeader
impl UnwindSafe for BazelHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more