pub struct View { /* private fields */ }Expand description
A self-contained piece of HTML content.
A view may contain multiple sibling nodes, but opened tags must be closed so the fragment can be nested safely inside a larger document.
<!-- Valid: all tags are closed, safe to nest -->
<div>Hello</div>
<p>World</p>
<!-- Invalid: unclosed tag would corrupt the parent document -->
<div>HelloImplementations§
Trait Implementations§
Source§impl NodeViewParts for View
impl NodeViewParts for View
Source§fn into_view_parts(self, _cx: &Cx, parts: &mut PartsWriter<'_>)
fn into_view_parts(self, _cx: &Cx, parts: &mut PartsWriter<'_>)
Appends this value to the view being built.
Auto Trait Implementations§
impl !RefUnwindSafe for View
impl !Sync for View
impl !UnwindSafe for View
impl Freeze for View
impl Send for View
impl Unpin for View
impl UnsafeUnpin for View
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