pub fn version_string() -> StringExpand description
Returns the full version string, such as “8.14.2”
§Returns
A string representing the full libvips version.
§Example
use vips::version_string;
let version_str = version_string();
println!("libvips version string: {}", version_str);§Note
This function involves unsafe code to interface with the underlying C library.
§Safety
The function assumes that the pointer returned by vips_version_string is valid
and points to a null-terminated C string.
§Panics
The function will panic if the C string is not valid UTF-8.
§Errors
This function does not return errors; it will convert invalid UTF-8 to a lossy string.
§Performance
The function may incur a small overhead due to the conversion from C string to Rust String.
§Thread Safety
The function is safe to call from multiple threads as it does not modify any shared state.