pub struct Element {
pub tag: String,
pub attrib: Vec<(String, String)>,
pub text: Option<String>,
pub children: Vec<Element>,
pub tail: Option<String>,
}Expand description
An XML element (etree.Element).
Fields§
§tag: StringThe tag (tag).
attrib: Vec<(String, String)>The attributes in insertion order (attrib).
text: Option<String>The text before the first child (text).
children: Vec<Element>The child elements.
tail: Option<String>The text after the element, before its next sibling (tail).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Forget for Element
impl Freeze for Elementwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<Element>: Freeze,
impl Move for Element
impl RefUnwindSafe for Element
impl Send for Elementwhere
RawVecInner: Send,
impl Sync for Elementwhere
RawVecInner: Sync,
impl Unpin for Element
impl UnsafeUnpin for Elementwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<Element>: UnsafeUnpin,
impl UnwindSafe for Elementwhere
RawVecInner: UnwindSafe,
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