Trait magnus::method::InitReturn
source · pub trait InitReturn: InitReturn { }
Expand description
Trait marking types that can be returned to Ruby from a library
init
function.
Implemented for the following types:
()
Result<(), magnus::Error>
When is Err(magnus::Error)
returned to Ruby it will be conveted to and
raised as a Ruby exception.
Note: functions without a specified return value will return ()
. ()
implements IntoValue
(converting to nil
).