pub struct ElementDecl {
pub name: String,
pub content_model: ContentModel,
}Expand description
An element declaration from <!ELEMENT name content-model>.
See XML 1.0 section 3.2.
Fields§
§name: StringThe element name.
content_model: ContentModelThe declared content model.
Trait Implementations§
Source§impl Clone for ElementDecl
impl Clone for ElementDecl
Source§fn clone(&self) -> ElementDecl
fn clone(&self) -> ElementDecl
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 moreAuto Trait Implementations§
impl Freeze for ElementDecl
impl RefUnwindSafe for ElementDecl
impl Send for ElementDecl
impl Sync for ElementDecl
impl Unpin for ElementDecl
impl UnsafeUnpin for ElementDecl
impl UnwindSafe for ElementDecl
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