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

Trait Implementations

Derived Implementations

impl Debug for Remark

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Eq for Remark

impl PartialEq for Remark

fn eq(&self, __arg_0: &Remark) -> bool

fn ne(&self, __arg_0: &Remark) -> bool

impl Clone for Remark

fn clone(&self) -> Remark

fn clone_from(&mut self, source: &Self)