Trait DeprecationSink

Source
pub trait DeprecationSink {
    // Required methods
    fn emit(&mut self, message: &str);
    fn emit_with_hints(&mut self, message: &str, hints: &[&str]);
}
Expand description

Destination for a deprecation message when accessing a deprecated value.

Required Methods§

Source

fn emit(&mut self, message: &str)

Emits the given deprecation message into this sink.

Source

fn emit_with_hints(&mut self, message: &str, hints: &[&str])

Emits the given deprecation message into this sink, with the given hints.

Implementations on Foreign Types§

Source§

impl DeprecationSink for (&mut Vec<SourceDiagnostic>, Span)

Source§

fn emit(&mut self, message: &str)

Source§

fn emit_with_hints(&mut self, message: &str, hints: &[&str])

Source§

impl DeprecationSink for (&mut Engine<'_>, Span)

Source§

fn emit(&mut self, message: &str)

Source§

fn emit_with_hints(&mut self, message: &str, hints: &[&str])

Source§

impl DeprecationSink for ()

Source§

fn emit(&mut self, _: &str)

Source§

fn emit_with_hints(&mut self, _: &str, _: &[&str])

Implementors§