Skip to main content

get_type_by_path

Function get_type_by_path 

Source
pub fn get_type_by_path(
    scope: &dyn Scope,
    path: &[String],
) -> Result<Rc<dyn Type>, RiddleError>
Expand description

Resolves a type by a dotted path-like sequence of names.

The first segment is looked up in the provided Scope, and each subsequent segment is resolved as a nested type of the previous class.

ยงErrors

Returns: