pub struct Element { /* private fields */ }Implementations§
Source§impl Element
impl Element
pub fn new( tag_name: String, attributes: Vec<Attribute>, empty_element: bool, contents: Vec<Content>, ) -> ElementPtr
pub fn from_string(string: String) -> Result<ElementPtr, HxmlError>
pub fn get_contents(&self) -> &Vec<Content>
pub fn get_contents_mut(&mut self) -> &mut Vec<Content>
pub fn add_contents(&mut self, contents: Vec<Content>)
pub fn delete_child_element(&mut self, element_ptr: ElementPtr)
pub fn add_element_ptr(&mut self, element_ptr: ElementPtr)
pub fn add_char_data(&mut self, char_data: String)
pub fn get_attribute(&self, attribute: String) -> Option<String>
pub fn set_attribute(&mut self, attribute: String, value: String)
pub fn has_unique_attributes(&self) -> bool
pub fn get_parent(&self) -> Option<ElementPtr>
pub fn set_parent(&mut self, parent: ElementPtr)
pub fn get_children(&self) -> Vec<ElementPtr>
pub fn get_siblings(&self) -> Vec<ElementPtr>
pub fn set_parent_recursive(&mut self)
pub fn to_string(&self) -> String
pub fn get_inner_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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