pub struct Template { /* private fields */ }Implementations§
Source§impl Template
impl Template
pub fn compile( source: &str, schema: Schema, options: Options, ) -> Result<Self, Error>
pub fn bounds(&self) -> Bounds
pub fn references(&self) -> &BTreeSet<String>
Sourcepub fn canonical_source(&self) -> &str
pub fn canonical_source(&self) -> &str
Preserve source bytes, including comments and tag spaces: every authored change must remain visible to the enclosing prompt document’s identity.
pub fn render(&self, values: &Values) -> Result<Rendered, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnsafeUnpin for Template
impl UnwindSafe for Template
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