Struct ress::Comment [−][src]
pub struct Comment { pub kind: Kind, pub content: String, }
Fields
kind: Kind
content: String
Methods
impl Comment
[src]
impl Comment
pub fn from_parts(content: String, kind: Kind) -> Self
[src]
pub fn from_parts(content: String, kind: Kind) -> 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
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