Trait hir::SyntaxContextExt
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§
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
Object Safety§
This trait is not object safe.