Trait SwapTemplateArg
pub trait SwapTemplateArg<'a> {
// Required method
fn resolve(self) -> Result<(&'a str, Cow<'a, AnyTemplate>), RungBuildError>;
}Expand description
A swap template as par_rungs takes it: a registry code, or a
(code, &template) value, registered or customised, code the name a
refusal calls it by.
Required Methods§
fn resolve(self) -> Result<(&'a str, Cow<'a, AnyTemplate>), RungBuildError>
fn resolve(self) -> Result<(&'a str, Cow<'a, AnyTemplate>), RungBuildError>
The template’s name and value.
§Errors
RungBuildError::UnknownTemplate for a code the registry lacks.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".