pub struct TemplateRef {
pub name: String,
pub file: String,
pub line: usize,
pub column: usize,
}Expand description
A reference from one template to another.
It keeps the position it was written at, so “that layout does not exist” can be reported with the same precision as a syntax error instead of surfacing as a bare file-not-found from somewhere deep in the renderer.
Fields§
§name: StringThe referenced view name, as written.
file: StringThe view the reference was written in.
line: usize§column: usizeImplementations§
Trait Implementations§
Source§impl Clone for TemplateRef
impl Clone for TemplateRef
Source§impl Debug for TemplateRef
impl Debug for TemplateRef
Source§impl PartialEq for TemplateRef
impl PartialEq for TemplateRef
impl StructuralPartialEq for TemplateRef
Auto Trait Implementations§
impl Freeze for TemplateRef
impl RefUnwindSafe for TemplateRef
impl Send for TemplateRef
impl Sync for TemplateRef
impl Unpin for TemplateRef
impl UnsafeUnpin for TemplateRef
impl UnwindSafe for TemplateRef
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