|
cu
|
option_t wraps a pointer und does checks whether it is null. More...
#include <option.h>
Public Types | |
| enum | { none, some } |
Data Fields | |
| enum option_t:: { ... } | _options |
| void * | data |
| void *(* | unwrap )(const struct option_t *) |
| void *(* | expect )(const struct option_t *, const char *msg) |
| void *(* | unwrap_or )(const struct option_t *, void *) |
| bool(* | is_some )(const struct option_t *) |
| bool(* | is_none )(const struct option_t *) |
option_t wraps a pointer und does checks whether it is null.
The structure contains pointer to functions for unwrapping the data and doing checks on it.