#[repr(C)]pub enum TxNodeType {
TxNodeDocument = 0,
TxNodeElement = 1,
TxNodeText = 2,
TxNodeComment = 3,
TxNodeDeclaration = 4,
TxNodeUnknown = 5,
}Expand description
C-compatible representation of the XML node type.
Variants§
TxNodeDocument = 0
The document root node.
TxNodeElement = 1
An XML element (tag).
TxNodeText = 2
A text content node.
TxNodeComment = 3
An XML comment (<!-- ... -->).
TxNodeDeclaration = 4
An XML declaration (<?xml ... ?>).
TxNodeUnknown = 5
An unrecognized XML construct.
Implementations§
Source§impl TxNodeType
impl TxNodeType
Sourcepub fn from_node_kind(kind: &NodeKind) -> Self
pub fn from_node_kind(kind: &NodeKind) -> Self
Converts a Rust NodeKind reference into a TxNodeType.
Trait Implementations§
Source§impl Clone for TxNodeType
impl Clone for TxNodeType
Source§fn clone(&self) -> TxNodeType
fn clone(&self) -> TxNodeType
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 TxNodeType
Source§impl Debug for TxNodeType
impl Debug for TxNodeType
impl Eq for TxNodeType
Source§impl PartialEq for TxNodeType
impl PartialEq for TxNodeType
impl StructuralPartialEq for TxNodeType
Auto Trait Implementations§
impl Freeze for TxNodeType
impl RefUnwindSafe for TxNodeType
impl Send for TxNodeType
impl Sync for TxNodeType
impl Unpin for TxNodeType
impl UnsafeUnpin for TxNodeType
impl UnwindSafe for TxNodeType
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