pub struct ElementPtr {
pub ptr: usize,
}Fields§
§ptr: usizeImplementations§
Source§impl ElementPtr
impl ElementPtr
pub fn null() -> Self
pub fn new(ptr: usize) -> Self
pub fn to_string(&self) -> String
pub fn get_inner_string(&self) -> String
pub fn add_element_ptr(&self, element_ptr: ElementPtr)
pub fn get_contents(&self) -> &Vec<Content>
pub fn get_contents_mut(&self) -> &mut Vec<Content>
pub fn add_contents(&self, contents: Vec<Content>)
pub fn get_attribute(&self, attribute: String) -> Option<String>
pub fn get_attributes(&self) -> &Vec<Attribute>
pub fn get_tag_name(&self) -> String
pub fn set_attribute(&self, attribute: String, value: String)
pub fn get_parent(&self) -> Option<ElementPtr>
pub fn delete_child_element(&self, child: ElementPtr)
pub fn get_children(&self) -> Vec<ElementPtr>
pub fn get_siblings(&self) -> Vec<ElementPtr>
pub fn set_parent(&self, parent: ElementPtr)
pub fn set_parent_recursive(&self)
pub fn has_unique_attributes(&self) -> bool
Trait Implementations§
Source§impl Clone for ElementPtr
impl Clone for ElementPtr
Source§fn clone(&self) -> ElementPtr
fn clone(&self) -> ElementPtr
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 ElementPtr
impl Debug for ElementPtr
Source§impl PartialEq for ElementPtr
impl PartialEq for ElementPtr
impl Copy for ElementPtr
Auto Trait Implementations§
impl Freeze for ElementPtr
impl RefUnwindSafe for ElementPtr
impl Send for ElementPtr
impl Sync for ElementPtr
impl Unpin for ElementPtr
impl UnwindSafe for ElementPtr
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