pub struct NodeFlags(/* private fields */);Expand description
Bitflags for node properties.
Packed into a single u8 for minimal space inside the Node struct.
Implementations§
Source§impl NodeFlags
impl NodeFlags
Sourcepub const HAS_CHILDREN: u8
pub const HAS_CHILDREN: u8
The element has at least one child.
Sourcepub const IS_SELF_CLOSING: u8
pub const IS_SELF_CLOSING: u8
The element was self-closing in source (<br/>).
Sourcepub const IS_COMMENT: u8
pub const IS_COMMENT: u8
This node is a comment node.
Sourcepub const IS_DOCTYPE: u8
pub const IS_DOCTYPE: u8
This node is a doctype node.
Sourcepub const IS_TEXT_FROM_SOURCE: u8
pub const IS_TEXT_FROM_SOURCE: u8
Trait Implementations§
impl Copy for NodeFlags
impl Eq for NodeFlags
impl StructuralPartialEq for NodeFlags
Auto Trait Implementations§
impl Freeze for NodeFlags
impl RefUnwindSafe for NodeFlags
impl Send for NodeFlags
impl Sync for NodeFlags
impl Unpin for NodeFlags
impl UnsafeUnpin for NodeFlags
impl UnwindSafe for NodeFlags
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