pub struct Usages {
pub usages: OrderedHashMap<ExprId, Usage>,
}
Expand description
Usages of member paths in expressions of interest, currently loops and closures.
Fields§
§usages: OrderedHashMap<ExprId, Usage>
Implementations§
source§impl Usages
impl Usages
pub fn from_function_body(function_body: &FunctionBody) -> Self
pub fn handle_closure( &mut self, arenas: &Arenas, param_ids: &[Parameter], body: ExprId, ) -> Usage
Trait Implementations§
source§impl<'a, T: ?Sized + Upcast<ExprFormatter<'a>>> DebugWithDb<T> for Usages
impl<'a, T: ?Sized + Upcast<ExprFormatter<'a>>> DebugWithDb<T> for Usages
Auto Trait Implementations§
impl Freeze for Usages
impl RefUnwindSafe for Usages
impl Send for Usages
impl Sync for Usages
impl Unpin for Usages
impl UnwindSafe for Usages
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<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