source_info_from_resource

Function source_info_from_resource 

Source
fn source_info_from_resource(
    resources: &Resources,
    lint_rule: String,
) -> Result<&SourceInfoV1, Error>
Expand description

Extracts a SourceInfoV1 from a Resources.

§Note

The lint_rule needs to be provided to provide a meaningful message in case of an error.

§Errors

Returns an error if resources does not contain SourceInfo data.