fn from_wide(chars: &[WCHAR]) -> String {
        // TODO: Use `memchr` crate if possible?
        let first_null = chars.iter().position(|c| *c == 0x00).unwrap_or(0);
        OsString::from_wide(&chars[..first_null])
            .to_string_lossy()
            .to_string()
    }
// TODO: Seems like it is used widely across `heim`, should be refactored
Seems like it is used widely across `heim`, should be refactored
Seems like it is used widely across ` heim ` should be refactored
fn from_wide(chars: &[WCHAR]) -> String {
        // TODO: Use `memchr` crate if possible?
        let first_null = chars.iter().position(|c| *c == 0x00).unwrap_or(0);
        OsString::from_wide(&chars[..first_null])
            .to_string_lossy()
            .to_string()
    }
fn from_wide ( chars : & [ WCHAR ] ) -> String { // TODO: Use `memchr` crate if possible? let first_null = chars . iter ( ) . position ( | c | * c == 0x00 ) . unwrap_or ( 0 ) ; OsString :: from_wide ( & chars [ .. first_null ] ) . to_string_lossy ( ) . to_string ( ) }
TODO: Seems like it is used widely across `heim`, should be refactored
TODO : Seems like it is used widely across ` heim ` should be refactored
chars
&[WCHAR]
chars
&[WCHAR]