Sha256: 7324e4717cca488573b53bdade88649ac4a25e1012bfe0ec80138863f4f60cf5
Contents?: true
Size: 312 Bytes
Versions: 8
Compression:
Stored size: 312 Bytes
Contents
#[no_mangle] pub extern fn is_relative(string: *const c_char) -> bool { let c_str = unsafe { assert!(!string.is_null()); CStr::from_ptr(string) }; let r_str = str::from_utf8(c_str.to_bytes()).unwrap_or(""); r_str.chars().next().unwrap_or("muffins".chars().next().unwrap()) != MAIN_SEPARATOR }
Version data entries
8 entries across 8 versions & 1 rubygems