MCPcopy Create free account
hub / github.com/apache/fory / IsSome

Method IsSome

go/fory/optional/optional.go:39–39  ·  view source on GitHub ↗

IsSome reports whether the optional contains a value.

()

Source from the content-addressed store, hash-verified

37
38// IsSome reports whether the optional contains a value.
39func (o Optional[T]) IsSome() bool { return o.has }
40
41// IsNone reports whether the optional is empty.
42func (o Optional[T]) IsNone() bool { return !o.has }

Calls

no outgoing calls