Trait Warn

Source
pub trait Warn<W> {
    // Required method
    fn warn(&mut self, warning: W);
}
Expand description

Trait for objects that can accept warnings.

Required Methods§

Source

fn warn(&mut self, warning: W)

This method is the receiver of the warnings.

Implementations on Foreign Types§

Source§

impl<W> Warn<W> for Vec<W>

Source§

fn warn(&mut self, warning: W)

Implementors§

Source§

impl<'a, WF, WT, W: Warn<WT>, F: FnMut(WF) -> WT> Warn<WF> for RevMap<'a, WF, WT, W, F>

Source§

impl<W> Warn<W> for Ignore

Source§

impl<W, F: FnMut(W)> Warn<W> for Closure<W, F>

Source§

impl<W: Any + Debug + Send> Warn<W> for Panic

Source§

impl<W: Debug> Warn<W> for Log

Source§

impl<WT, WF: Into<WT>, W: Warn<WT>> Warn<WF> for Wrap<WT, W>