[][src]Struct ress::tokens::Comment

pub struct Comment<T> {
    pub kind: CommentKind,
    pub content: T,
    pub tail_content: Option<T>,
}

A comment, effectively should be treated as white space. There are 3 kinds of comments according to the specification.

  • Single line comments: //comment
  • Multi line comments: /* comment */
  • HTML comments: plus more!

Fields

kind: CommentKindcontent: Ttail_content: Option<T>

Trait Implementations

impl<'a> CommentExt<&'a str> for Comment<&'a str>[src]

impl CommentExt<String> for Comment<String>[src]

impl<T: Clone> Clone for Comment<T>[src]

impl<T: PartialEq> PartialEq<Comment<T>> for Comment<T>[src]

impl ToString for Comment<String>[src]

impl<'_> ToString for Comment<&'_ str>[src]

impl<T: Debug> Debug for Comment<T>[src]

impl<T> StructuralPartialEq for Comment<T>[src]

Auto Trait Implementations

impl<T> Send for Comment<T> where
    T: Send

impl<T> Sync for Comment<T> where
    T: Sync

impl<T> Unpin for Comment<T> where
    T: Unpin

impl<T> UnwindSafe for Comment<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Comment<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]