Crate warn [] [src]

A simple library for warning callbacks.

Structs

Closure

Helper struct for the closure function.

Ignore

Struct that will ignore all the warnings it gets passed.

Log

Struct that logs each warning it encounters.

Panic

Struct that will panic on any warning it encounters.

RevMap

Helper struct for the rev_map function.

Wrap

Helper struct for the wrap function.

Traits

Warn

Trait for objects that can accept warnings.

Functions

closure

Applies a function to all warnings passed to this object.

rev_map

Applies a function to all warnings passed to this, before passing it to the underlying warn object.

wrap

Wraps a Warn struct so it can receive more warning types.