pub struct NodeDoctype {
pub token_start: DocStart,
pub token_doctype: Ident,
pub value: RawText,
pub token_end: Gt,
}Expand description
Doctype node.
Doctype declaration: <!DOCTYPE html> (case insensitive), html is the
node value in this case.
Usually doctype only contaim html, but also can contain arbitrary DOCTYPE
legacy string, or “obsolete permitted DOCTYPE string”, therewhy value is
RawText.
Fields§
§token_start: DocStart§token_doctype: Ident“doctype”
value: RawTextThe doctype value.
token_end: GtTrait Implementations§
Source§impl Clone for NodeDoctype
impl Clone for NodeDoctype
Source§fn clone(&self) -> NodeDoctype
fn clone(&self) -> NodeDoctype
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeDoctype
impl Debug for NodeDoctype
Source§impl ParseRecoverable for NodeDoctype
impl ParseRecoverable for NodeDoctype
fn parse_recoverable( parser: &mut RecoverableContext, input: ParseStream<'_>, ) -> Option<Self>
Source§impl ToTokens for NodeDoctype
impl ToTokens for NodeDoctype
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for NodeDoctype
impl RefUnwindSafe for NodeDoctype
impl !Send for NodeDoctype
impl !Sync for NodeDoctype
impl Unpin for NodeDoctype
impl UnwindSafe for NodeDoctype
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.