]>
git.proxmox.com Git - rustc.git/blob - vendor/xml5ever/src/tree_builder/types.rs
1 // Copyright 2014-2017 The html5ever Project Developers. See the
2 // COPYRIGHT file at the top-level directory of this distribution.
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
10 pub use self::Token
::*;
11 pub use self::XmlPhase
::*;
12 pub use self::XmlProcessResult
::*;
14 use crate::tendril
::StrTendril
;
15 use crate::tokenizer
::{Doctype, Pi, Tag}
;
17 #[derive(PartialEq, Eq, Copy, Clone, Debug)]
24 /// A subset/refinement of `tokenizer::XToken`. Everything else is handled
25 /// specially at the beginning of `process_token`.
26 #[derive(PartialEq, Eq, Clone, Debug)]
29 DoctypeToken(Doctype
),
30 CommentToken(StrTendril
),
31 CharacterTokens(StrTendril
),
37 pub enum XmlProcessResult
{
39 Reprocess(XmlPhase
, Token
),