pub type ULFileSystemGetFileCharsetCallback = Option<unsafe extern "C" fn(path: ULString) -> ULString>;
Expand description

Get the charset / encoding of the file (eg “utf-8”).

This is only important for text-based files and is usually determined by analyzing the contents of the file.

If a charset cannot be determined, it’s usually safe to return “utf-8” for this value.

The library will consume the result and call ulDestroyString() after this call returns.

Aliased Type§

enum ULFileSystemGetFileCharsetCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut C_String) -> *mut C_String),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut C_String) -> *mut C_String)

Some value of type T.