pub enum LoadedEntry<T> {
File(PathBuf),
Embedded(T),
}Expand description
Variants§
File(PathBuf)
Path to read from disk (dev mode, enables hot reload).
On each access, the file is re-read and transformed, picking up any changes.
Embedded(T)
Pre-loaded/embedded content (release mode).
Content is stored directly, avoiding filesystem access at runtime.
Trait Implementations§
Source§impl<T: Clone> Clone for LoadedEntry<T>
impl<T: Clone> Clone for LoadedEntry<T>
Source§fn clone(&self) -> LoadedEntry<T>
fn clone(&self) -> LoadedEntry<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for LoadedEntry<T>
impl<T: Debug> Debug for LoadedEntry<T>
Source§impl From<&LoadedEntry<String>> for ResolvedTemplate
impl From<&LoadedEntry<String>> for ResolvedTemplate
Source§fn from(entry: &LoadedEntry<String>) -> Self
fn from(entry: &LoadedEntry<String>) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq> PartialEq for LoadedEntry<T>
impl<T: PartialEq> PartialEq for LoadedEntry<T>
impl<T: Eq> Eq for LoadedEntry<T>
impl<T> StructuralPartialEq for LoadedEntry<T>
Auto Trait Implementations§
impl<T> Freeze for LoadedEntry<T>where
T: Freeze,
impl<T> RefUnwindSafe for LoadedEntry<T>where
T: RefUnwindSafe,
impl<T> Send for LoadedEntry<T>where
T: Send,
impl<T> Sync for LoadedEntry<T>where
T: Sync,
impl<T> Unpin for LoadedEntry<T>where
T: Unpin,
impl<T> UnwindSafe for LoadedEntry<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.