pub enum DocOwnership {
Owned,
ParserOwned,
Borrowed,
}Expand description
The ownership state of a document.
Variants§
Owned
The document is owned by the caller.
It must be freed with xmlFreeDoc.
ParserOwned
The document is owned by a parser context. It will be freed when the context is freed.
Borrowed
The document is borrowed. Caller must not free it.
Trait Implementations§
Source§impl Clone for DocOwnership
impl Clone for DocOwnership
Source§fn clone(&self) -> DocOwnership
fn clone(&self) -> DocOwnership
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DocOwnership
Source§impl Debug for DocOwnership
impl Debug for DocOwnership
impl Eq for DocOwnership
Source§impl PartialEq for DocOwnership
impl PartialEq for DocOwnership
impl StructuralPartialEq for DocOwnership
Auto Trait Implementations§
impl Freeze for DocOwnership
impl RefUnwindSafe for DocOwnership
impl Send for DocOwnership
impl Sync for DocOwnership
impl Unpin for DocOwnership
impl UnsafeUnpin for DocOwnership
impl UnwindSafe for DocOwnership
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