pub struct TemplateKey {
pub file: String,
pub line: u32,
pub col: u32,
}Expand description
Source-location key identifying a single view! site, so the dev watcher
can match an edited template against the one currently running and diff them
(D103’s location!() key). Stable across a rebuild of the same source.
Fields§
§file: StringSource file path (from file!()).
line: u321-based line (from line!()).
col: u321-based column (from column!()).
Implementations§
Trait Implementations§
Source§impl Clone for TemplateKey
impl Clone for TemplateKey
Source§fn clone(&self) -> TemplateKey
fn clone(&self) -> TemplateKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TemplateKey
impl Debug for TemplateKey
Source§impl Display for TemplateKey
impl Display for TemplateKey
impl Eq for TemplateKey
Source§impl Hash for TemplateKey
impl Hash for TemplateKey
Source§impl PartialEq for TemplateKey
impl PartialEq for TemplateKey
impl StructuralPartialEq for TemplateKey
Auto Trait Implementations§
impl Freeze for TemplateKey
impl RefUnwindSafe for TemplateKey
impl Send for TemplateKey
impl Sync for TemplateKey
impl Unpin for TemplateKey
impl UnsafeUnpin for TemplateKey
impl UnwindSafe for TemplateKey
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