pub struct LiquidParser<'config> { /* private fields */ }Expand description
Parser for Liquid templates
Implementations§
Source§impl<'config> LiquidParser<'config>
impl<'config> LiquidParser<'config>
Sourcepub fn new(config: &'config LiquidLanguage) -> Self
pub fn new(config: &'config LiquidLanguage) -> Self
Create a new Liquid parser
Trait Implementations§
Source§impl<'config> Clone for LiquidParser<'config>
impl<'config> Clone for LiquidParser<'config>
Source§fn clone(&self) -> LiquidParser<'config>
fn clone(&self) -> LiquidParser<'config>
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<'config> Debug for LiquidParser<'config>
impl<'config> Debug for LiquidParser<'config>
Source§impl<'config> Parser<LiquidLanguage> for LiquidParser<'config>
impl<'config> Parser<LiquidLanguage> for LiquidParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<LiquidLanguage>,
) -> ParseOutput<'a, LiquidLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<LiquidLanguage>, ) -> ParseOutput<'a, LiquidLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Auto Trait Implementations§
impl<'config> Freeze for LiquidParser<'config>
impl<'config> RefUnwindSafe for LiquidParser<'config>
impl<'config> Send for LiquidParser<'config>
impl<'config> Sync for LiquidParser<'config>
impl<'config> Unpin for LiquidParser<'config>
impl<'config> UnsafeUnpin for LiquidParser<'config>
impl<'config> UnwindSafe for LiquidParser<'config>
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