Option¶
Option contains a spec and an effective value for a given option.
Constructors¶
create¶
new val create(
spec': OptionSpec val,
value': (Bool val | String val | I64 val |
U64 val | F64 val | _StringSeq val))
: Option val^
Parameters¶
- spec': OptionSpec val
- value': (Bool val | String val | I64 val | U64 val | F64 val | _StringSeq val)
Returns¶
- Option val^
Public Functions¶
spec¶
Returns¶
- OptionSpec val
bool¶
Returns the option value as a Bool, defaulting to false.
Returns¶
- Bool val
string¶
Returns the option value as a String, defaulting to empty.
Returns¶
- String val
i64¶
Returns the option value as an I64, defaulting to 0.
Returns¶
- I64 val
u64¶
Returns the option value as an U64, defaulting to 0.
Returns¶
- U64 val
f64¶
Returns the option value as an F64, defaulting to 0.0.
Returns¶
- F64 val
string_seq¶
Returns the option value as a ReadSeq[String], defaulting to empty.
Returns¶
deb_string¶
Returns¶
- String val