pub struct Div<'p> { /* private fields */ }Expand description
<div>: Content Division element
Implementations§
Source§impl<'p> Div<'p>
<div> items
impl<'p> Div<'p>
<div> items
Sourcepub fn cdata<'a, V>(&mut self, text: V) -> &mut Self
pub fn cdata<'a, V>(&mut self, text: V) -> &mut Self
Add character data content
These characters will be replaced with entities:
| Char | Entity |
|---|---|
& | & |
< | < |
> | > |
Sourcepub fn cdata_len<'a, V>(&mut self, text: V, len: usize) -> &mut Self
pub fn cdata_len<'a, V>(&mut self, text: V, len: usize) -> &mut Self
Add character data content with a maximum character limit
| Char | Entity |
|---|---|
& | & |
< | < |
> | > |
Sourcepub fn blockquote(&mut self) -> BlockQuote<'_>
pub fn blockquote(&mut self) -> BlockQuote<'_>
Add BlockQuote child element
Add Button child element
Add Footer child element
Add Menu child element
Add Nav child element
Sourcepub fn comment<'v, V>(&mut self, com: V) -> &mut Self
pub fn comment<'v, V>(&mut self, com: V) -> &mut Self
Add a comment
These characters will be replaced with entities:
| Char | Entity |
|---|---|
- | ‐ |
< | > |
> | < |
Source§impl<'p> Div<'p>
Global attributes
impl<'p> Div<'p>
Global attributes
Sourcepub fn autocapitalize<'a, V>(&mut self, val: V) -> &mut Self
pub fn autocapitalize<'a, V>(&mut self, val: V) -> &mut Self
Add autocapitalize attribute
Sourcepub fn autocorrect<'a, V>(&mut self, val: V) -> &mut Self
pub fn autocorrect<'a, V>(&mut self, val: V) -> &mut Self
Add autocorrect attribute
Sourcepub fn contenteditable<'a, V>(&mut self, val: V) -> &mut Self
pub fn contenteditable<'a, V>(&mut self, val: V) -> &mut Self
Add contenteditable attribute
Sourcepub fn enterkeyhint<'a, V>(&mut self, val: V) -> &mut Self
pub fn enterkeyhint<'a, V>(&mut self, val: V) -> &mut Self
Add enterkeyhint attribute
Sourcepub fn exportparts<'a, V>(&mut self, val: V) -> &mut Self
pub fn exportparts<'a, V>(&mut self, val: V) -> &mut Self
Add exportparts attribute
Add hidden attribute
Sourcepub fn spellcheck<'a, V>(&mut self, val: V) -> &mut Self
pub fn spellcheck<'a, V>(&mut self, val: V) -> &mut Self
Add spellcheck attribute
Auto Trait Implementations§
impl<'p> Freeze for Div<'p>
impl<'p> RefUnwindSafe for Div<'p>
impl<'p> Send for Div<'p>
impl<'p> Sync for Div<'p>
impl<'p> Unpin for Div<'p>
impl<'p> !UnwindSafe for Div<'p>
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