alpm_mtree::mtree::v2

Function ensure_property

Source
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 is None.