Enum bempline::options::IncludeMethod
source · [−]pub enum IncludeMethod {
CurrentDirectory,
Template,
Path(PathBuf),
}
Expand description
The root from which relative includes are resolved from during [Document::compile].
CurrentDirectory will try to resolve include paths according from the current working directory.
Template will try to resolve include paths from the location of the template file. If this is the method set when trying to parse a buffer- when using [Document::from_str] for example- every include will be considered unknown as there is no template path to attempt to resolve from.
Path will try to resolve include paths from the owned PathBuf
.
Variants
CurrentDirectory
Relative paths are resolved from the current working directory
Template
Relative paths are resolved from the location of the template
Path(PathBuf)
Relative paths are resolved from this path
Trait Implementations
sourceimpl Clone for IncludeMethod
impl Clone for IncludeMethod
sourcefn clone(&self) -> IncludeMethod
fn clone(&self) -> IncludeMethod
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for IncludeMethod
impl Debug for IncludeMethod
sourceimpl PartialEq<IncludeMethod> for IncludeMethod
impl PartialEq<IncludeMethod> for IncludeMethod
sourcefn eq(&self, other: &IncludeMethod) -> bool
fn eq(&self, other: &IncludeMethod) -> bool
impl StructuralPartialEq for IncludeMethod
Auto Trait Implementations
impl RefUnwindSafe for IncludeMethod
impl Send for IncludeMethod
impl Sync for IncludeMethod
impl Unpin for IncludeMethod
impl UnwindSafe for IncludeMethod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more