pub struct Usages<'db> {
pub usages: OrderedHashMap<ExprId, Usage<'db>>,
}Expand description
Usages of member paths in expressions of interest, currently loops and closures.
Fields§
§usages: OrderedHashMap<ExprId, Usage<'db>>Implementations§
Source§impl<'db> Usages<'db>
impl<'db> Usages<'db>
pub fn from_function_body(function_body: &FunctionBody<'db>) -> Self
pub fn handle_closure( &mut self, arenas: &Arenas<'db>, param_ids: &[Parameter<'db>], body: ExprId, ) -> Usage<'db>
Trait Implementations§
Source§impl<'db> DebugWithDb<'db> for Usages<'db>
impl<'db> DebugWithDb<'db> for Usages<'db>
type Db = ExprFormatter<'db>
fn fmt(&self, f: &mut Formatter<'_>, db: &'db ExprFormatter<'db>) -> Result
fn debug<'me>(&'me self, db: &'db Self::Db) -> DebugWith<'me, 'db, Self::Db>where
Self: Sized + 'me,
fn into_debug<'me>(self, db: &'db Self::Db) -> DebugWith<'me, 'db, Self::Db>where
Self: Sized + 'me,
Auto Trait Implementations§
impl<'db> Freeze for Usages<'db>
impl<'db> RefUnwindSafe for Usages<'db>
impl<'db> Send for Usages<'db>
impl<'db> Sync for Usages<'db>
impl<'db> Unpin for Usages<'db>
impl<'db> UnwindSafe for Usages<'db>
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
Source§impl<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
impl<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
fn debug_db_upcast(&'db self) -> &'db T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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