pub enum ElementContent {
Element(Element),
CharacterData(CharacterData),
}Expand description
One content item inside an arxml element
Elements may contain other elements, character data, or a mixture of both, depending on their type.
Variants§
Implementations§
Source§impl ElementContent
impl ElementContent
Sourcepub fn unwrap_element(&self) -> Option<Element>
pub fn unwrap_element(&self) -> Option<Element>
returns the element contained inside this ElementContent, or None if the content is CharacterData
Sourcepub fn unwrap_cdata(&self) -> Option<CharacterData>
pub fn unwrap_cdata(&self) -> Option<CharacterData>
returns the CharacterData inside this ElementContent, or None if the content is an Element
Trait Implementations§
Source§impl Clone for ElementContent
impl Clone for ElementContent
Source§fn clone(&self) -> ElementContent
fn clone(&self) -> ElementContent
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 Debug for ElementContent
impl Debug for ElementContent
Source§impl Ord for ElementContent
impl Ord for ElementContent
Source§fn cmp(&self, other: &ElementContent) -> Ordering
fn cmp(&self, other: &ElementContent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ElementContent
impl PartialEq for ElementContent
Source§impl PartialOrd for ElementContent
impl PartialOrd for ElementContent
impl Eq for ElementContent
impl StructuralPartialEq for ElementContent
Auto Trait Implementations§
impl Freeze for ElementContent
impl !RefUnwindSafe for ElementContent
impl Send for ElementContent
impl Sync for ElementContent
impl Unpin for ElementContent
impl !UnwindSafe for ElementContent
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.