[−][src]Enum syn_rsx::NodeType
Type of the node
Variants
A HTMLElement tag, with optional children and attributes. Potentially selfclosing. Any tag name is valid.
Attributes of opening tags. Every attribute is itself a node.
Quoted text. It's planned to support unquoted text as well using span start and end, but that currently only works with nightly rust
Comment: <!-- "comment" -->
, currently has the same restrictions as
Text
(comment needs to be quoted)
Doctype declaration: <!DOCTYPE html>
(case insensitive), html
is the
node value in this case
Fragment: <></>
Arbitrary rust code in braced {}
blocks
Trait Implementations
impl Clone for NodeType
[src]
impl Debug for NodeType
[src]
impl Display for NodeType
[src]
impl PartialEq<NodeType> for NodeType
[src]
pub fn eq(&self, other: &NodeType) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for NodeType
[src]
Auto Trait Implementations
impl RefUnwindSafe for NodeType
[src]
impl Send for NodeType
[src]
impl Sync for NodeType
[src]
impl Unpin for NodeType
[src]
impl UnwindSafe for NodeType
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,