pub enum DjangoElement {
HtmlText {
content: String,
span: Range<usize>,
},
Variable {
name: String,
filters: Vec<String>,
span: Range<usize>,
},
Tag {
name: String,
args: Vec<String>,
span: Range<usize>,
},
Comment {
content: String,
span: Range<usize>,
},
}Expand description
Django 模板元素
Variants§
HtmlText
HTML 文本
Variable
Django 变量 {{ variable }}
Tag
Django 标签 {% tag %}
Comment
Django 注释 {# comment #}
Trait Implementations§
Source§impl Clone for DjangoElement
impl Clone for DjangoElement
Source§fn clone(&self) -> DjangoElement
fn clone(&self) -> DjangoElement
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 moreAuto Trait Implementations§
impl Freeze for DjangoElement
impl RefUnwindSafe for DjangoElement
impl Send for DjangoElement
impl Sync for DjangoElement
impl Unpin for DjangoElement
impl UnwindSafe for DjangoElement
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