[−][src]Struct docugen::document::DocumentTemplate
A DocumentTemplate
mimics a mustache
template. A template consists of a list of Partial
s.
Fields
partials: Vec<Partial>
Methods
impl DocumentTemplate
[src]
pub fn new() -> Self
[src]
pub fn with_partials(partials: &[Partial]) -> Self
[src]
pub fn add_partial(&mut self, partial: &Partial)
[src]
impl DocumentTemplate
[src]
pub fn saturate(
&self,
tag_pairs: &[TagPair]
) -> Result<FilledDocument, TemplateError>
[src]
&self,
tag_pairs: &[TagPair]
) -> Result<FilledDocument, TemplateError>
Trait Implementations
impl Debug for DocumentTemplate
[src]
impl PartialEq<DocumentTemplate> for DocumentTemplate
[src]
fn eq(&self, other: &DocumentTemplate) -> bool
[src]
fn ne(&self, other: &DocumentTemplate) -> bool
[src]
impl StructuralPartialEq for DocumentTemplate
[src]
Auto Trait Implementations
impl RefUnwindSafe for DocumentTemplate
impl Send for DocumentTemplate
impl Sync for DocumentTemplate
impl Unpin for DocumentTemplate
impl UnwindSafe for DocumentTemplate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,