pub enum NodeTypePath {
Body,
Div,
P,
Img,
Texture,
IFrame,
}
Expand description
Signifies the type (i.e. the discriminant value) of a DOM node without carrying any of its associated data
Variants§
Implementations§
Source§impl NodeTypePath
impl NodeTypePath
Parses the node type from a CSS string such as "div"
=> NodeTypePath::Div
pub fn from_str(css_key: &str) -> Result<Self, NodeTypePathParseError<'_>>
Trait Implementations§
Source§impl Clone for NodeTypePath
impl Clone for NodeTypePath
Source§fn clone(&self) -> NodeTypePath
fn clone(&self) -> NodeTypePath
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NodeTypePath
impl Debug for NodeTypePath
Source§impl Display for NodeTypePath
impl Display for NodeTypePath
Source§impl Hash for NodeTypePath
impl Hash for NodeTypePath
Source§impl Ord for NodeTypePath
impl Ord for NodeTypePath
Source§fn cmp(&self, other: &NodeTypePath) -> Ordering
fn cmp(&self, other: &NodeTypePath) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NodeTypePath
impl PartialEq for NodeTypePath
Source§impl PartialOrd for NodeTypePath
impl PartialOrd for NodeTypePath
impl Copy for NodeTypePath
impl Eq for NodeTypePath
impl StructuralPartialEq for NodeTypePath
Auto Trait Implementations§
impl Freeze for NodeTypePath
impl RefUnwindSafe for NodeTypePath
impl Send for NodeTypePath
impl Sync for NodeTypePath
impl Unpin for NodeTypePath
impl UnwindSafe for NodeTypePath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)