pub enum TemplateError {
UnknownPlaceholder {
name: String,
},
UnknownNative {
native: String,
},
NativeNotPlaced {
native: String,
},
UnclosedPlaceholder {
at: usize,
},
PlacedTwice {
native: String,
},
}Expand description
Why a template could not be rendered.
Each variant is a mistake that would otherwise ship as a broken include, so rendering reports it instead of guessing.
Variants§
UnknownPlaceholder
{{SOMETHING}} with no value behind it.
UnknownNative
{{NATIVE:Name}} naming a native the plugin does not register.
NativeNotPlaced
A registered native that no placeholder emits, with no {{NATIVES}} to
collect it: it would be missing from the include.
UnclosedPlaceholder
A {{ with no }} after it.
PlacedTwice
The same declaration emitted twice: Pawn rejects the second as a symbol that is already defined.
Trait Implementations§
Source§impl Clone for TemplateError
impl Clone for TemplateError
Source§impl Debug for TemplateError
impl Debug for TemplateError
Source§impl Display for TemplateError
impl Display for TemplateError
impl Eq for TemplateError
Source§impl PartialEq for TemplateError
impl PartialEq for TemplateError
impl StructuralPartialEq for TemplateError
Auto Trait Implementations§
impl Freeze for TemplateError
impl RefUnwindSafe for TemplateError
impl Send for TemplateError
impl Sync for TemplateError
impl Unpin for TemplateError
impl UnsafeUnpin for TemplateError
impl UnwindSafe for TemplateError
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