[][src]Trait mruby::warn::MrbWarn

pub trait MrbWarn {
    fn warn(&self, message: &str) -> Result<(), MrbError>;
}

Interpreters that implement MrbWarn expose methods for emitting warnings during execution.

Some functionality required to be compliant with ruby-spec is deprecated or invalid behavior and ruby-spec expects a warning to be emitted to $stderr using the Warning module from the standard library.

Required methods

fn warn(&self, message: &str) -> Result<(), MrbError>

Emit a warning message using Kernel#warn.

This method appends newlines to message if necessary.

Loading content...

Implementors

impl MrbWarn for Mrb[src]

Loading content...