Skip to main content

hash_options

Function hash_options 

Source
pub fn hash_options<I, S>(opts: I) -> u64
where I: IntoIterator<Item = S>, S: AsRef<str>,
Expand description

FNV-1a 64-bit hash of an iterable of NVRTC compile options.

Order-sensitive: callers that want order-insensitive keys must sort the iterable before passing it in. NVRTC’s --define-macro and --include-path flags are order-significant in general, so the cache key preserves the caller’s order.