[][src]Macro rosy::def_method_unchecked

macro_rules! def_method_unchecked {
    (
        $class:expr,
        $name:expr,
        |
                $this:ident $(: $this_ty:ty)?
            $(, $args:ident $(: $args_ty:ty)?)*
            $(,)?
        |
        $body:expr
    ) => { ... };
}

Defines a method on a Class instance in a simple manner, without checking for exceptions.

This is purely a convenience wrapper for def_method_unchecked that makes the process much less painful and tedious.

See def_method! for usage info.

Safety

The caller must ensure that self is not frozen or else a FrozenError exception will be raised.