DeprecationSink

Trait DeprecationSink 

Source
pub trait DeprecationSink {
    // Required method
    fn emit(self, message: &str, until: Option<&str>);
}
Expand description

Destination for a deprecation message when accessing a deprecated value.

Required Methods§

Source

fn emit(self, message: &str, until: Option<&str>)

Emits the given deprecation message into this sink alongside a version in which the deprecated item is planned to be removed.

Implementations on Foreign Types§

Source§

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

Source§

fn emit(self, message: &str, version: Option<&str>)

Emits the deprecation message as a warning.

Source§

impl DeprecationSink for ()

Source§

fn emit(self, _: &str, _: Option<&str>)

Implementors§