[−][src]Trait ress::tokens::CommentExt
Extension methods for comment to work with both &str and String
Required methods
fn from_parts(
content: T,
kind: CommentKind,
tail_content: Option<T>
) -> Comment<T>
content: T,
kind: CommentKind,
tail_content: Option<T>
) -> Comment<T>
fn new_single_line(content: T) -> Comment<T>
fn new_multi_line(content: T) -> Comment<T>
fn new_html(content: T, tail_content: Option<T>) -> Comment<T>
fn new_html_no_tail(content: T) -> Comment<T>
fn new_html_with_tail(content: T, tail: T) -> Comment<T>
fn new_hashbang(content: T) -> Comment<T>
fn is_multi_line(&self) -> bool
fn is_single_line(&self) -> bool
fn is_html(&self) -> bool
fn is_hashbang(&self) -> bool
Implementors
impl CommentExt<String> for Comment<String>
[src]
fn from_parts(
content: String,
kind: CommentKind,
tail_content: Option<String>
) -> Self
[src]
content: String,
kind: CommentKind,
tail_content: Option<String>
) -> Self
fn new_single_line(content: String) -> Self
[src]
fn new_multi_line(content: String) -> Self
[src]
fn new_html(content: String, tail_content: Option<String>) -> Self
[src]
fn new_html_no_tail(content: String) -> Self
[src]
fn new_html_with_tail(content: String, tail: String) -> Self
[src]
fn new_hashbang(content: String) -> Self
[src]
fn is_multi_line(&self) -> bool
[src]
fn is_single_line(&self) -> bool
[src]
fn is_html(&self) -> bool
[src]
fn is_hashbang(&self) -> bool
[src]
impl<'a> CommentExt<&'a str> for Comment<&'a str>
[src]
fn from_parts(
content: &'a str,
kind: CommentKind,
tail_content: Option<&'a str>
) -> Self
[src]
content: &'a str,
kind: CommentKind,
tail_content: Option<&'a str>
) -> Self