deps/glaml_extended/extractors
Values
pub fn extract_bool_from_node(
node: glaml.Node,
key: String,
) -> Result(Bool, String)
Extracts a boolean from a glaml node
pub fn extract_dict_strings_from_node(
node: glaml.Node,
key: String,
) -> Result(dict.Dict(String, String), String)
Extracts a dictionary of string key-value pairs from a glaml node. Returns an empty dict if the key is missing (allowing optional empty dicts).
pub fn extract_float_from_node(
node: glaml.Node,
key: String,
) -> Result(Float, String)
Extracts a float from a glaml node.
pub fn extract_int_from_node(
node: glaml.Node,
key: String,
) -> Result(Int, String)
Extracts an integer from a glaml node.
pub fn extract_string_from_node(
node: glaml.Node,
key: String,
) -> Result(String, String)
Extracts a string from a glaml node.
pub fn extract_string_list_from_node(
node: glaml.Node,
key: String,
) -> Result(List(String), String)
Extracts a list of strings from a glaml node.
pub fn iteratively_parse_collection(
root: glaml.Node,
params: dict.Dict(String, String),
actual_parse_fn: fn(glaml.Node, dict.Dict(String, String)) -> Result(
a,
String,
),
key: String,
) -> Result(List(a), String)
Iteratively parses a collection of nodes.