pub struct Transformer { /* private fields */ }Expand description
Transformer for converting Go template AST to idiomatic Jinja2
Implementations§
Source§impl Transformer
impl Transformer
pub fn new() -> Self
Sourcepub fn with_chart_prefix(self, prefix: &str) -> Self
pub fn with_chart_prefix(self, prefix: &str) -> Self
Set the chart name prefix to strip from include calls
Sourcepub fn with_type_context(self, ctx: TypeContext) -> Self
pub fn with_type_context(self, ctx: TypeContext) -> Self
Set the type context for smarter dict/list detection
Sourcepub fn warnings(&self) -> &[TransformWarning]
pub fn warnings(&self) -> &[TransformWarning]
Get warnings generated during transformation
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Transformer
impl !RefUnwindSafe for Transformer
impl Send for Transformer
impl !Sync for Transformer
impl Unpin for Transformer
impl UnwindSafe for Transformer
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