Add Document struct
This commit is contained in:
parent
bc7a659303
commit
d18f9d2171
2 changed files with 15 additions and 0 deletions
|
|
@ -99,3 +99,9 @@ impl Element {
|
|||
self
|
||||
}
|
||||
}
|
||||
|
||||
/// An HTML document.
|
||||
///
|
||||
/// A `Document(el)` is basically the same as `[Content::doctype(), el.into()]`
|
||||
/// for the purposes of the [`crate::Render`] trait.
|
||||
pub struct Document(pub Element);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue