MCPcopy Create free account
hub / github.com/apache/datafusion / with_note

Method with_note

datafusion/common/src/diagnostic.rs:139–142  ·  view source on GitHub ↗

Like [`Diagnostic::add_note`], but returns `self` to allow chaining.

(mut self, message: impl Into<String>, span: Option<Span>)

Source from the content-addressed store, hash-verified

137
138 /// Like [`Diagnostic::add_note`], but returns `self` to allow chaining.
139 pub fn with_note(mut self, message: impl Into<String>, span: Option<Span>) -> Self {
140 self.add_note(message.into(), span);
141 self
142 }
143
144 /// Like [`Diagnostic::add_help`], but returns `self` to allow chaining.
145 pub fn with_help(mut self, message: impl Into<String>, span: Option<Span>) -> Self {

Callers 2

signature_innerMethod · 0.80

Calls 2

add_noteMethod · 0.80
intoMethod · 0.45

Tested by

no test coverage detected