pub unsafe extern "C" fn nix_flake_reference_and_fragment_from_string(
context: *mut nix_c_context,
fetchSettings: *mut nix_fetchers_settings,
flakeSettings: *mut nix_flake_settings,
parseFlags: *mut nix_flake_reference_parse_flags,
str_: *const c_char,
strLen: usize,
flakeReferenceOut: *mut *mut nix_flake_reference,
fragmentCallback: nix_get_string_callback,
fragmentCallbackUserData: *mut c_void,
) -> nix_errExpand description
Parse a URL-like string into a nix_flake_reference.
§Arguments
context[out] - context – Optional, stores error informationfetchSettings[in] - context – The fetch settings to useflakeSettings[in] - context – The flake settings to useparseFlags[in] - context – Specific context and parameters such as base directorystr[in] - input – The URI-like string to parsestrLen[in] - input – The length ofstrflakeReferenceOut[out] - result – The resulting flake referencefragmentCallback[in] - result – A callback to call with the fragment part of the URLfragmentCallbackUserData[in] - result – User data to pass to the fragment callback
§Returns
NIX_OK on success, NIX_ERR on failure