Enum rubble_templates_core::template::TemplateSlice [−][src]
pub enum TemplateSlice<'a> { Text { value: &'a str, start_position: usize, end_position: usize, }, Code { value: &'a str, start_position: usize, end_position: usize, }, }
Expand description
A slice of template that can be returned by an iterator.
Usually used to represent a fragment of template that needs to be evaluated. Can be used for finding template parts depending on what rules are used to detect text and code or other patterns in the source file.
Variants
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for TemplateSlice<'a>
impl<'a> Send for TemplateSlice<'a>
impl<'a> Sync for TemplateSlice<'a>
impl<'a> Unpin for TemplateSlice<'a>
impl<'a> UnwindSafe for TemplateSlice<'a>