Struct xswag_base::diag::Remark
[−]
[src]
pub struct Remark { pub kind: RemarkKind, pub desc: String, pub snippet: Snippet, }
Part of a Report that describes the occurrence with an optional code snippet.
Fields
kind: RemarkKind
desc: String
Remark description
snippet: Snippet
Methods
impl Remark
[src]
fn new<S: Into<String>>(kind: RemarkKind, desc: S, snippet: Snippet) -> Self
Creates a new remark with the given parameters
fn error<S: Into<String>>(desc: S, snippet: Snippet) -> Self
Creates a new remark of kind Error
with the given parameters
fn warning<S: Into<String>>(desc: S, snippet: Snippet) -> Self
Creates a new remark of kind Warning
with the given parameters
fn note<S: Into<String>>(desc: S, snippet: Snippet) -> Self
Creates a new remark of kind Note
with the given parameters
Trait Implementations
impl Debug for Remark
[src]
impl Eq for Remark
[src]
impl PartialEq for Remark
[src]
fn eq(&self, __arg_0: &Remark) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Remark) -> bool
This method tests for !=
.
impl Clone for Remark
[src]
fn clone(&self) -> Remark
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more