Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cast ¶
func Cast[TSource, TTarget any](source types.Option[TSource]) types.Result[types.Option[TTarget]]
Cast attempts to cast a source option type of TSource to a result option type of TTarget if the cast fails, Error is returned if the cast succeeds, Ok is returned wrapping the Option[TTarget]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.