Function byond::call::test_byond_call_args [] [src]

pub fn test_byond_call_args<P>(
    func: unsafe extern "C" fn(_: i32, _: *const *const i8) -> *const i8,
    args: &[P]
) -> String where
    P: AsRef<[u8]>, 

Allows one to easily test BYOND callbacks. Takes arguments that are passed down to the function.

Panics

Panics if the strings in args contain a NUL byte. Non-UTF-8 strings are lossily converted.