pub struct LowerCtx<'a> {
pub db: &'a dyn DefDatabase,
/* private fields */
}
Fields§
§db: &'a dyn DefDatabase
Implementations§
source§impl<'a> LowerCtx<'a>
impl<'a> LowerCtx<'a>
pub fn new( db: &'a dyn DefDatabase, file_id: HirFileId, types_map: &'a mut TypesMap, types_source_map: &'a mut TypesSourceMap, ) -> Self
pub fn with_span_map_cell( db: &'a dyn DefDatabase, file_id: HirFileId, span_map: OnceCell<SpanMap>, types_map: &'a mut TypesMap, types_source_map: &'a mut TypesSourceMap, ) -> Self
sourcepub fn for_synthetic_ast(
db: &'a dyn DefDatabase,
ast_id_map: Arc<AstIdMap>,
types_map: &'a mut TypesMap,
types_source_map: &'a mut TypesSourceMap,
) -> Self
pub fn for_synthetic_ast( db: &'a dyn DefDatabase, ast_id_map: Arc<AstIdMap>, types_map: &'a mut TypesMap, types_source_map: &'a mut TypesSourceMap, ) -> Self
Prepares a LowerCtx
for synthetic AST that needs to be lowered. This is intended for IDE things.
pub fn update_impl_traits_bounds_from_type_ref(&mut self, type_ref: TypeRefId)
pub fn take_impl_traits_bounds(&mut self) -> Vec<ThinVec<TypeBound>>
Auto Trait Implementations§
impl<'a> !Freeze for LowerCtx<'a>
impl<'a> !RefUnwindSafe for LowerCtx<'a>
impl<'a> !Send for LowerCtx<'a>
impl<'a> !Sync for LowerCtx<'a>
impl<'a> Unpin for LowerCtx<'a>
impl<'a> !UnwindSafe for LowerCtx<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more