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