pub fn licenses(&self) -> Vec<String> {
        self.requirements()
            .map(|req| req.req.to_string())
            .collect::<Vec<_>>()
    }
/// Get licenses from the expression.
///
/// # Errors
///
/// Returns [`SpdxError`] if parsing of the epxression fails.
Get licenses from the expression.
Get licenses from the expression .
pub fn licenses(&self) -> Vec<String> {
        self.requirements()
            .map(|req| req.req.to_string())
            .collect::<Vec<_>>()
    }
pub fn licenses ( & self ) -> Vec < String > { self . requirements ( ) . map ( | req | req . req . to_string ( ) ) . collect :: < Vec < _ > > ( ) }
Get licenses from the expression.
Get licenses from the expression .
&self
&self
errors
Returns [`SpdxError`] if parsing of the epxression fails.
Returns [ ` SpdxError ` ] if parsing of the epxression fails .