fn ensure_property<T>(
content: &str,
line_nr: usize,
property: Option<T>,
property_name: &str,
) -> Result<T, Error>
Expand description
Take any given property and ensure that it’s set.
§Errors
Error::InterpreterError
if the expected property isNone
.