pub enum DeclRef {
Element(String),
Attlist(String),
Entity(usize),
}Expand description
A reference to one internal/external-subset declaration in source
order, so the DTD serializer can reproduce libxml2’s declaration
ordering (it walks xmlDtd.children, which is source order).
Variants§
Element(String)
<!ELEMENT name …> — index by name into Dtd::elements.
Attlist(String)
<!ATTLIST name …> — index by name into Dtd::attlists.
Entity(usize)
<!ENTITY …> — index into Dtd::entities.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeclRef
impl RefUnwindSafe for DeclRef
impl Send for DeclRef
impl Sync for DeclRef
impl Unpin for DeclRef
impl UnsafeUnpin for DeclRef
impl UnwindSafe for DeclRef
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