IsNone returns true if the [Option] is a [None] variant.
()
| 114 | |
| 115 | // IsNone returns true if the [Option] is a [None] variant. |
| 116 | func (o Option[T]) IsNone() bool { |
| 117 | return !o.present |
| 118 | } |
| 119 | |
| 120 | // Value returns the underlying value and true for a [Some] variant, or the |
| 121 | // zero value and false for a [None] variant. |
no outgoing calls