pub struct ElementDefinition<'a> {
pub name: &'a str,
pub element: Option<Element>,
}Expand description
Syntax tree of an element definition from the server, in the form of <!ELEMENT {name} ...>.
See MXP specification: Elements.
Full definition:
<!ELEMENT
Name
[Definition]
[ATT=attribute-list]
[TAG=tag]
[FLAG=flags]
[OPEN]
[DELETE]
[EMPTY]
>Fields§
§name: &'a strName of the element.
element: Option<Element>Definition of the element, or None if this is a DELETE instruction.
Trait Implementations§
Source§impl<'a> Clone for ElementDefinition<'a>
impl<'a> Clone for ElementDefinition<'a>
Source§fn clone(&self) -> ElementDefinition<'a>
fn clone(&self) -> ElementDefinition<'a>
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<'a> Debug for ElementDefinition<'a>
impl<'a> Debug for ElementDefinition<'a>
Source§impl Display for ElementDefinition<'_>
impl Display for ElementDefinition<'_>
Source§impl<'a> From<ElementDefinition<'a>> for Definition<'a>
impl<'a> From<ElementDefinition<'a>> for Definition<'a>
Source§fn from(value: ElementDefinition<'a>) -> Self
fn from(value: ElementDefinition<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<ElementDefinition<'a>> for Tag<'a>
impl<'a> From<ElementDefinition<'a>> for Tag<'a>
Source§fn from(value: ElementDefinition<'a>) -> Self
fn from(value: ElementDefinition<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for ElementDefinition<'a>
impl<'a> PartialEq for ElementDefinition<'a>
Source§impl<'a> TryFrom<Definition<'a>> for ElementDefinition<'a>
impl<'a> TryFrom<Definition<'a>> for ElementDefinition<'a>
Source§type Error = TryFromNodeError
type Error = TryFromNodeError
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<Tag<'a>> for ElementDefinition<'a>
impl<'a> TryFrom<Tag<'a>> for ElementDefinition<'a>
impl<'a> Eq for ElementDefinition<'a>
impl<'a> StructuralPartialEq for ElementDefinition<'a>
Auto Trait Implementations§
impl<'a> Freeze for ElementDefinition<'a>
impl<'a> RefUnwindSafe for ElementDefinition<'a>
impl<'a> Send for ElementDefinition<'a>
impl<'a> Sync for ElementDefinition<'a>
impl<'a> Unpin for ElementDefinition<'a>
impl<'a> UnsafeUnpin for ElementDefinition<'a>
impl<'a> UnwindSafe for ElementDefinition<'a>
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