Struct cargo_gazelle::header::BazelHeader
source · 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