Trait SyntaxContextExt

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

Required Methods§

fn normalize_to_macro_rules( self, db: &(dyn ExpandDatabase + 'static), ) -> SyntaxContext

fn normalize_to_macros_2_0( self, db: &(dyn ExpandDatabase + 'static), ) -> SyntaxContext

fn parent_ctxt(self, db: &(dyn ExpandDatabase + 'static)) -> SyntaxContext

fn remove_mark( &mut self, db: &(dyn ExpandDatabase + 'static), ) -> (Option<MacroCallId>, Transparency)

fn outer_mark( self, db: &(dyn ExpandDatabase + 'static), ) -> (Option<MacroCallId>, Transparency)

fn marks( self, db: &(dyn ExpandDatabase + 'static), ) -> Vec<(MacroCallId, Transparency)>

fn is_opaque(self, db: &(dyn ExpandDatabase + 'static)) -> bool

Implementations on Foreign Types§

§

impl SyntaxContextExt for SyntaxContext

§

fn normalize_to_macro_rules( self, db: &(dyn ExpandDatabase + 'static), ) -> SyntaxContext

§

fn normalize_to_macros_2_0( self, db: &(dyn ExpandDatabase + 'static), ) -> SyntaxContext

§

fn parent_ctxt(self, db: &(dyn ExpandDatabase + 'static)) -> SyntaxContext

§

fn outer_mark( self, db: &(dyn ExpandDatabase + 'static), ) -> (Option<MacroCallId>, Transparency)

§

fn remove_mark( &mut self, db: &(dyn ExpandDatabase + 'static), ) -> (Option<MacroCallId>, Transparency)

§

fn marks( self, db: &(dyn ExpandDatabase + 'static), ) -> Vec<(MacroCallId, Transparency)>

§

fn is_opaque(self, db: &(dyn ExpandDatabase + 'static)) -> bool

Implementors§