#[repr(transparent)]pub struct XmlFragment(_);Implementations
sourceimpl XmlFragment
impl XmlFragment
pub fn new(inner: BranchPtr) -> Self
pub fn first_child(&self) -> Option<Xml>
pub fn parent(&self) -> Option<XmlElement>
pub fn len(&self) -> u32
pub fn iter(&self) -> TreeWalker<'_>ⓘNotable traits for TreeWalker<'a>impl<'a> Iterator for TreeWalker<'a> type Item = Xml;
pub fn to_string(&self) -> String
pub fn insert_elem<S: ToString>(
&self,
txn: &mut Transaction,
index: u32,
name: S
) -> XmlElement
pub fn insert_text(&self, txn: &mut Transaction, index: u32) -> XmlText
pub fn remove(&self, txn: &mut Transaction, index: u32, len: u32)
pub fn push_elem_back<S: ToString>(
&self,
txn: &mut Transaction,
name: S
) -> XmlElement
pub fn push_elem_front<S: ToString>(
&self,
txn: &mut Transaction,
name: S
) -> XmlElement
pub fn push_text_back(&self, txn: &mut Transaction) -> XmlText
pub fn push_text_front(&self, txn: &mut Transaction) -> XmlText
pub fn get<T: From<BranchPtr>>(&self, index: u32) -> Option<T>
pub fn observe<F>(&mut self, f: F) -> Subscription<XmlEvent> where
F: Fn(&Transaction, &XmlEvent) + 'static,
pub fn unobserve(&mut self, subscription_id: u32)
Trait Implementations
sourceimpl Clone for XmlFragment
impl Clone for XmlFragment
sourcefn clone(&self) -> XmlFragment
fn clone(&self) -> XmlFragment
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 XmlFragment
impl Debug for XmlFragment
sourceimpl Into<XmlElement> for XmlFragment
impl Into<XmlElement> for XmlFragment
sourcefn into(self) -> XmlElement
fn into(self) -> XmlElement
Performs the conversion.
sourceimpl PartialEq<XmlFragment> for XmlFragment
impl PartialEq<XmlFragment> for XmlFragment
sourcefn eq(&self, other: &XmlFragment) -> bool
fn eq(&self, other: &XmlFragment) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &XmlFragment) -> bool
fn ne(&self, other: &XmlFragment) -> bool
This method tests for !=.
impl Eq for XmlFragment
impl StructuralEq for XmlFragment
impl StructuralPartialEq for XmlFragment
Auto Trait Implementations
impl !RefUnwindSafe for XmlFragment
impl !Send for XmlFragment
impl !Sync for XmlFragment
impl Unpin for XmlFragment
impl !UnwindSafe for XmlFragment
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more