pub enum Item {
Text(String),
Open(String, Vec<Attr>),
Close(String),
Void(String, Vec<Attr>),
Title(String),
Input(String),
}Expand description
One piece of the checked document.
Variants§
Text(String)
Text, with entities replaced and nothing to escape.
Open(String, Vec<Attr>)
An element that holds others, opened.
Close(String)
The element opened most recently, and not yet closed, closed.
Void(String, Vec<Attr>)
An element that holds nothing: <br>, <img>, <hr>, <area>,
and the page’s own <sound>, <body>, and <tab>.
Title(String)
The window’s title.
Input(String)
A line the player typed, shown as it is.
Implementations§
Trait Implementations§
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Forget for Item
impl Freeze for Item
impl Move for Item
impl RefUnwindSafe for Item
impl Send for Itemwhere
RawVecInner: Send,
impl Sync for Itemwhere
RawVecInner: Sync,
impl Unpin for Item
impl UnsafeUnpin for Itemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, Option<String>)>: UnsafeUnpin,
impl UnwindSafe for Itemwhere
RawVecInner: UnwindSafe,
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