#[no_mangle]
pub extern "C" fn nstd_string_as_str(string: &NSTDString) -> NSTDStr
Available on crate feature nstd_string only.
Expand description

Creates a string slice containing the contents of string.

Parameters:

  • const NSTDString *string - The string.

Returns

NSTDStr str - The new string slice.