pub enum Item {
Comment {
content: String,
},
Text {
content: String,
},
FilteredTag {
content: String,
},
Tag {
name: String,
attributes: Attributes,
items: Vec<Item>,
tag_logic: Rc<dyn TagLogic>,
},
}
Variants§
Implementations§
Source§impl Item
impl Item
pub fn comment(content: &[char]) -> Item
pub fn text(content: &[char]) -> Item
pub fn tag(name: &[char]) -> Item
pub fn filtered_tag() -> Item
pub fn name(&self) -> String
pub fn clone_empty(&self) -> Item
pub fn matches(&self, other: &Item) -> bool
pub fn push_item(&mut self, item: Item)
pub fn push_attributes(&mut self, attributes: Attributes)
pub fn replace_block(&mut self, block: &Item)
pub fn run(&self, context: &mut TemplateContext) -> Result<(), Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Item
impl !RefUnwindSafe for Item
impl !Send for Item
impl !Sync for Item
impl Unpin for Item
impl !UnwindSafe for Item
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