Struct hxml::ElementPtr
source · [−]pub struct ElementPtr {
pub ptr: usize,
}Fields
ptr: usizeImplementations
sourceimpl ElementPtr
impl ElementPtr
pub fn null() -> Self
pub fn new(ptr: usize) -> Self
pub fn to_string(&self) -> String
pub fn add_element_ptr(&self, element_ptr: ElementPtr)
pub fn add_contents(&self, contents: Vec<Content>)
pub fn get_attribute(&self, attribute: String) -> Option<String>
pub fn set_attribute(&self, attribute: String, value: String)
pub fn get_parent(&self) -> Option<ElementPtr>
pub fn set_parent(&self, parent: ElementPtr)
pub fn set_parent_recursive(&self)
pub fn has_unique_attributes(&self) -> bool
Trait Implementations
sourceimpl Clone for ElementPtr
impl Clone for ElementPtr
sourcefn clone(&self) -> ElementPtr
fn clone(&self) -> ElementPtr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ElementPtr
impl Debug for ElementPtr
impl Copy for ElementPtr
Auto Trait Implementations
impl RefUnwindSafe for ElementPtr
impl Send for ElementPtr
impl Sync for ElementPtr
impl Unpin for ElementPtr
impl UnwindSafe for ElementPtr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more