Trait DeprecationSink
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§
fn emit_with_hints(&mut self, message: &str, hints: &[&str])
fn emit_with_hints(&mut self, message: &str, hints: &[&str])
Emits the given deprecation message into this sink, with the given hints.