None instantiates an [Option] with no value.
()
| 43 | |
| 44 | // None instantiates an [Option] with no value. |
| 45 | func None[T any]() Option[T] { |
| 46 | return Option[T]{} |
| 47 | } |
| 48 | |
| 49 | func SomeIfNonZero[T comparable](value T) Option[T] { |
| 50 | // value is a zero value then return a None |
nothing calls this directly
no outgoing calls
no test coverage detected