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 | |
desc | Remark description |
snippet |
Methods
impl Remark
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