[−][src]Struct quickcfg::Template
A loaded template string.
Methods
impl Template
[src]
pub fn parse(input: &str) -> Result<Template, Error>
[src]
Parse a template string, with variables delimited with {var}
.
pub fn as_relative_path(
&self,
vars: impl Vars,
environment: impl Environment
) -> Result<Option<RelativePathBuf>, Error>
[src]
&self,
vars: impl Vars,
environment: impl Environment
) -> Result<Option<RelativePathBuf>, Error>
Render as a relative path buffer.
pub fn as_path(
&self,
root: &Path,
base_dirs: Option<&BaseDirs>,
vars: impl Vars,
environment: impl Environment
) -> Result<Option<PathBuf>, Error>
[src]
&self,
root: &Path,
base_dirs: Option<&BaseDirs>,
vars: impl Vars,
environment: impl Environment
) -> Result<Option<PathBuf>, Error>
Render as a path.
pub fn as_string(
&self,
vars: impl Vars,
environment: impl Environment
) -> Result<Option<String>, Error>
[src]
&self,
vars: impl Vars,
environment: impl Environment
) -> Result<Option<String>, Error>
Simplified to render as string.
Trait Implementations
impl Debug for Template
[src]
impl<'de> Deserialize<'de> for Template
[src]
fn deserialize<D>(deserializer: D) -> Result<Template, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for Template
[src]
impl Eq for Template
[src]
impl PartialEq<Template> for Template
[src]
impl StructuralEq for Template
[src]
impl StructuralPartialEq for Template
[src]
Auto Trait Implementations
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,