Trait WarningFactory

Source
pub trait WarningFactory {
    // Required methods
    fn build_py_warning(&self, ctx: &Ctx) -> TokenStream;
    fn span(&self) -> Span;
}

Required Methods§

Source

fn build_py_warning(&self, ctx: &Ctx) -> TokenStream

Source

fn span(&self) -> Span

Implementations on Foreign Types§

Source§

impl<T: WarningFactory> WarningFactory for Vec<T>

Source§

fn build_py_warning(&self, ctx: &Ctx) -> TokenStream

Source§

fn span(&self) -> Span

Implementors§

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here