[−][src]Struct liquid_compiler::Tag
An element that is a tag.
Methods
impl<'a> Tag<'a>
[src]
pub fn new(text: &'a str) -> Result<Self>
[src]
Creates a new tag from a string such as "{% tagname tagtoken1 tagtoken2 ... %}".
This is used as a debug tool. It allows to easily build tags in unit tests.
pub fn name(&self) -> &str
[src]
Returns the name of this tag.
ⓘImportant traits for TagTokenIter<'a>pub fn tokens(&mut self) -> &mut TagTokenIter<'a>
[src]
ⓘImportant traits for TagTokenIter<'a>
Returns the tokens of this tag.
ⓘImportant traits for TagTokenIter<'a>pub fn into_tokens(self) -> TagTokenIter<'a>
[src]
ⓘImportant traits for TagTokenIter<'a>
Consumes this structure to obtain ownership over its tokens.
pub fn as_str(&self) -> &str
[src]
Returns the tag as a str.
pub fn parse(
self,
tag_block: &mut TagBlock,
options: &Language
) -> Result<Box<dyn Renderable>>
[src]
self,
tag_block: &mut TagBlock,
options: &Language
) -> Result<Box<dyn Renderable>>
Parses the tag just as if it weren't inside any block.
Trait Implementations
Auto Trait Implementations
impl<'a> !Send for Tag<'a>
impl<'a> Unpin for Tag<'a>
impl<'a> !Sync for Tag<'a>
impl<'a> !UnwindSafe for Tag<'a>
impl<'a> !RefUnwindSafe for Tag<'a>
Blanket Implementations
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,