#[repr(C)]pub struct _xmlNs {
pub next: *mut _xmlNs,
pub type_: xmlNsType,
pub href: *const xmlChar,
pub prefix: *const xmlChar,
pub _private: *mut c_void,
pub context: *mut _xmlDoc,
}Expand description
An XML namespace. Note that prefix == NULL is valid, it defines the default namespace within the subtree (until overridden).
xmlNsType is unified with xmlElementType.
Note that the XPath engine returns XPath namespace nodes as
xmlNs cast to xmlNode. This is a terrible design decision that
can easily cause type confusion errors. In this case, the next
member points to the xmlNode element to which the namespace
node belongs.
Fields§
§next: *mut _xmlNsnext namespace
type_: xmlNsTypeXML_NAMESPACE_DECL
href: *const xmlCharnamespace URI
prefix: *const xmlCharnamespace prefix
_private: *mut c_voidapplication data
context: *mut _xmlDocnormally an xmlDoc
Trait Implementations§
Auto Trait Implementations§
impl !Send for _xmlNs
impl !Sync for _xmlNs
impl Freeze for _xmlNs
impl RefUnwindSafe for _xmlNs
impl Unpin for _xmlNs
impl UnsafeUnpin for _xmlNs
impl UnwindSafe for _xmlNs
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