tinymist_std::typst::diag

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(&mut self, message: &str)

Emits the given deprecation message into this sink.

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§

§

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

§

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

§

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

§

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

§

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

§

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

§

impl DeprecationSink for ()

§

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

§

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

Implementors§