cairo_lang_semantic::items::us

Trait SemanticUseEx

Source
pub trait SemanticUseEx<'a>: Upcast<dyn SemanticGroup + 'a> {
    // Provided method
    fn use_resolved_item(&self, use_id: UseId) -> Maybe<ResolvedGenericItem> { ... }
}

Provided Methods§

Source

fn use_resolved_item(&self, use_id: UseId) -> Maybe<ResolvedGenericItem>

Returns the resolved item or an error if it can’t be resolved.

This is not a query as the cycle handling is done in priv_use_semantic_data.

Implementors§

Source§

impl<'a, T: Upcast<dyn SemanticGroup + 'a> + ?Sized> SemanticUseEx<'a> for T