Struct ress::Comment [−][src]
Fields
kind: Kind
content: String
tail_content: Option<String>
Methods
impl Comment
[src]
impl Comment
pub fn from_parts(
content: String,
kind: Kind,
tail_content: Option<String>
) -> Self
[src]
pub fn from_parts(
content: String,
kind: Kind,
tail_content: Option<String>
) -> Self
pub fn new_single_line(content: &str) -> Self
[src]
pub fn new_single_line(content: &str) -> Self
pub fn new_multi_line(content: &str) -> Self
[src]
pub fn new_multi_line(content: &str) -> Self
pub fn new_html(content: &str, tail_content: Option<String>) -> Self
[src]
pub fn new_html(content: &str, tail_content: Option<String>) -> Self
pub fn new_html_no_tail(content: &str) -> Self
[src]
pub fn new_html_no_tail(content: &str) -> Self
pub fn new_html_with_tail(content: &str, tail: &str) -> Self
[src]
pub fn new_html_with_tail(content: &str, tail: &str) -> Self
pub fn is_multi_line(&self) -> bool
[src]
pub fn is_multi_line(&self) -> bool
pub fn is_single_line(&self) -> bool
[src]
pub fn is_single_line(&self) -> bool
pub fn is_html(&self) -> bool
[src]
pub fn is_html(&self) -> bool
Trait Implementations
impl Debug for Comment
[src]
impl Debug for Comment
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Comment
[src]
impl PartialEq for Comment
fn eq(&self, other: &Comment) -> bool
[src]
fn eq(&self, other: &Comment) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Comment) -> bool
[src]
fn ne(&self, other: &Comment) -> bool
This method tests for !=
.
impl Clone for Comment
[src]
impl Clone for Comment
fn clone(&self) -> Comment
[src]
fn clone(&self) -> Comment
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl ToString for Comment
[src]
impl ToString for Comment