pub enum XmlOut {
Element(XmlElementRef),
Fragment(XmlFragmentRef),
Text(XmlTextRef),
}Expand description
A return type from XML elements retrieval methods. It’s an enum of all supported values, that can be nested inside XmlElementRef. These are other XmlElementRefs, XmlFragmentRefs or XmlTextRef values.
Variants§
Implementations§
Source§impl XmlOut
impl XmlOut
pub fn as_ptr(&self) -> BranchPtr
pub fn id(&self) -> BranchID
Sourcepub fn into_xml_element(self) -> Option<XmlElementRef>
pub fn into_xml_element(self) -> Option<XmlElementRef>
If current underlying XmlOut is wrapping a XmlElementRef, it will be returned.
Otherwise, a None will be returned.
Sourcepub fn into_xml_fragment(self) -> Option<XmlFragmentRef>
pub fn into_xml_fragment(self) -> Option<XmlFragmentRef>
If current underlying XmlOut is wrapping a XmlFragmentRef, it will be returned.
Otherwise, a None will be returned.
Sourcepub fn into_xml_text(self) -> Option<XmlTextRef>
pub fn into_xml_text(self) -> Option<XmlTextRef>
If current underlying XmlOut is wrapping a XmlTextRef, it will be returned.
Otherwise, a None will be returned.
Trait Implementations§
Source§impl TryInto<XmlElementRef> for XmlOut
impl TryInto<XmlElementRef> for XmlOut
Source§impl TryInto<XmlFragmentRef> for XmlOut
impl TryInto<XmlFragmentRef> for XmlOut
Auto Trait Implementations§
impl Freeze for XmlOut
impl !RefUnwindSafe for XmlOut
impl Send for XmlOut
impl Sync for XmlOut
impl Unpin for XmlOut
impl !UnwindSafe for XmlOut
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