Trait hir_expand::hygiene::SyntaxContextExt

source ·
pub trait SyntaxContextExt {
    // Required methods
    fn normalize_to_macro_rules(self, db: &dyn ExpandDatabase) -> Self;
    fn normalize_to_macros_2_0(self, db: &dyn ExpandDatabase) -> Self;
    fn parent_ctxt(self, db: &dyn ExpandDatabase) -> Self;
    fn remove_mark(
        &mut self,
        db: &dyn ExpandDatabase,
    ) -> (Option<MacroCallId>, Transparency);
    fn outer_mark(
        self,
        db: &dyn ExpandDatabase,
    ) -> (Option<MacroCallId>, Transparency);
    fn marks(self, db: &dyn ExpandDatabase) -> Vec<(MacroCallId, Transparency)>;
    fn is_opaque(self, db: &dyn ExpandDatabase) -> bool;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SyntaxContextExt for SyntaxContextId

Implementors§