pub struct Dockerfile<'a> {
pub parser_directives: ParserDirectives<'a>,
pub instructions: Vec<Instruction<'a>>,
/* private fields */
}
Expand description
A dockerfile.
Fields§
§parser_directives: ParserDirectives<'a>
Parser directives.
instructions: Vec<Instruction<'a>>
Instructions.
Implementations§
Source§impl<'a> Dockerfile<'a>
impl<'a> Dockerfile<'a>
Sourcepub fn global_args<'b>(
&'b self,
) -> impl ExactSizeIterator<Item = &'b ArgInstruction<'a>>
pub fn global_args<'b>( &'b self, ) -> impl ExactSizeIterator<Item = &'b ArgInstruction<'a>>
Returns an iterator over global args.
Sourcepub fn stages<'b>(&'b self) -> impl ExactSizeIterator<Item = Stage<'a, 'b>>
pub fn stages<'b>(&'b self) -> impl ExactSizeIterator<Item = Stage<'a, 'b>>
Returns an iterator over stages.
Trait Implementations§
Source§impl<'a> Debug for Dockerfile<'a>
impl<'a> Debug for Dockerfile<'a>
Auto Trait Implementations§
impl<'a> Freeze for Dockerfile<'a>
impl<'a> RefUnwindSafe for Dockerfile<'a>
impl<'a> Send for Dockerfile<'a>
impl<'a> Sync for Dockerfile<'a>
impl<'a> Unpin for Dockerfile<'a>
impl<'a> UnwindSafe for Dockerfile<'a>
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