Safely wraps a value that might be null or undefined in an Option. Creates Some if the value is defined, None otherwise.
The type of the value
The value to wrap (might be null/undefined)
Some(value) if value is defined, None otherwise
Creates an Option from any value. Alias for Option function.
Creates an Option from binary string
Creates an Option from JSON string
Creates an Option from YAML string
Returns a None instance. Alias for None function.
Safely wraps a value that might be null or undefined in an Option. Creates Some if the value is defined, None otherwise.