[−][src]Enum reinda_core::template::Fragment
A parsed template fragment.
Variants
Path(String)
Inserts the public path of another asset. Example:
{{: path:bundle.js :}}
.
Include(String)
Includes another asset. Example: {{: include:fonts.css :}}
.
Var(String)
Interpolates a runtime variable. Example: {{: var:name :}}
.
Implementations
impl Fragment
[src]
pub fn as_include(&self) -> Option<&str>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Fragment
[src]
impl Send for Fragment
[src]
impl Sync for Fragment
[src]
impl Unpin for Fragment
[src]
impl UnwindSafe for Fragment
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,