Struct swc_html_ast::DocumentType
source · pub struct DocumentType {
pub span: Span,
pub name: Option<JsWord>,
pub public_id: Option<JsWord>,
pub system_id: Option<JsWord>,
pub raw: Option<Atom>,
}
Fields§
§span: Span
§name: Option<JsWord>
§public_id: Option<JsWord>
§system_id: Option<JsWord>
§raw: Option<Atom>
Trait Implementations§
source§impl Clone for DocumentType
impl Clone for DocumentType
source§fn clone(&self) -> DocumentType
fn clone(&self) -> DocumentType
Returns a copy 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 DocumentType
impl Debug for DocumentType
source§impl EqIgnoreSpan for DocumentType
impl EqIgnoreSpan for DocumentType
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl From<DocumentType> for Child
impl From<DocumentType> for Child
source§fn from(v: DocumentType) -> Self
fn from(v: DocumentType) -> Self
Converts to this type from the input type.
source§impl Hash for DocumentType
impl Hash for DocumentType
source§impl PartialEq for DocumentType
impl PartialEq for DocumentType
source§fn eq(&self, other: &DocumentType) -> bool
fn eq(&self, other: &DocumentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Spanned for DocumentType
impl Spanned for DocumentType
impl Eq for DocumentType
impl StructuralEq for DocumentType
impl StructuralPartialEq for DocumentType
Auto Trait Implementations§
impl RefUnwindSafe for DocumentType
impl Send for DocumentType
impl Sync for DocumentType
impl Unpin for DocumentType
impl UnwindSafe for DocumentType
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