pub struct Doctype {
pub name: Option<StrTendril>,
pub public_id: Option<StrTendril>,
pub system_id: Option<StrTendril>,
}
Expand description
A DOCTYPE
token.
Doctype token in XML5 is rather limited for reasons, such as:
security and simplicity. XML5 only supports declaring DTD with
name, public identifier and system identifier
Fields§
§name: Option<StrTendril>
Name of DOCTYPE declared
public_id: Option<StrTendril>
Public identifier of this DOCTYPE.
system_id: Option<StrTendril>
System identifier of this DOCTYPE.
Trait Implementations§
impl Eq for Doctype
impl StructuralPartialEq for Doctype
Auto Trait Implementations§
impl !Freeze for Doctype
impl !RefUnwindSafe for Doctype
impl !Send for Doctype
impl !Sync for Doctype
impl Unpin for Doctype
impl UnwindSafe for Doctype
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)