getOrOption method

Option<T> getOrOption()

Gets the underlying value, returns None if the cell is empty

Implementation

Option<T> getOrOption() {
  if (_isSet) {
    return Some(_val as T);
  }
  return None;
}