Optional.of_nullable


Description:

public Optional.of_nullable (owned T value)

Creates an optional from a potentially null value. If the provided value is null, the optional will be empty.

Parameters:

value

The potentially null value.