halo2_base::utils

Function value_to_option

Source
pub fn value_to_option<V>(value: Value<V>) -> Option<V>
Expand description

Wraps the internal value of value in an Option. If the value is None, then the function returns None.

  • value: Value to convert.