Module utils

Source

Traits§

TypeName

Functions§

require_arg
Given a Value assumed to be a Value::List(), grab the item at index and err if there isn’t one.
require_typed_arg
Given a Value assumed to be a Value::List(), and some type T, grab the item at index in the list and try converting it to type T. RuntimeError if the argument doesn’t exist, or if it is the wrong type.