pub enum RenderTemplate {
Given(TemplateInput),
Recorded {
search_path: Vec<PathBuf>,
},
}Expand description
Which template a regenerate renders.
One of two, rather than an optional template beside a search path: a search path means something only for the recorded file, and a given template carries its own.
Variants§
Given(TemplateInput)
The template given: a file with the directories its chain resolves over, or a loader document.
Recorded
The template the item records, when that is a readable file, its chain resolved over
search_path. A recorded reference that is not a file is refused, never resolved.
Trait Implementations§
Source§impl Clone for RenderTemplate
impl Clone for RenderTemplate
Source§impl Debug for RenderTemplate
impl Debug for RenderTemplate
Source§impl Default for RenderTemplate
impl Default for RenderTemplate
Source§impl PartialEq for RenderTemplate
impl PartialEq for RenderTemplate
impl StructuralPartialEq for RenderTemplate
Auto Trait Implementations§
impl Freeze for RenderTemplate
impl RefUnwindSafe for RenderTemplate
impl Send for RenderTemplate
impl Sync for RenderTemplate
impl Unpin for RenderTemplate
impl UnsafeUnpin for RenderTemplate
impl UnwindSafe for RenderTemplate
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