Struct cairo_lang_lowering::lower::usage::BlockUsages
source · pub struct BlockUsages {
pub block_usages: OrderedHashMap<ExprId, Usage>,
}
Expand description
Usages of variables and member paths in each semantic block of a function.
Fields§
§block_usages: OrderedHashMap<ExprId, Usage>
Implementations§
source§impl BlockUsages
impl BlockUsages
pub fn from_function_body(function_body: &FunctionBody) -> Self
Trait Implementations§
source§impl Debug for BlockUsages
impl Debug for BlockUsages
source§impl<'a, T: ?Sized + Upcast<ExprFormatter<'a>>> DebugWithDb<T> for BlockUsages
impl<'a, T: ?Sized + Upcast<ExprFormatter<'a>>> DebugWithDb<T> for BlockUsages
Auto Trait Implementations§
impl Freeze for BlockUsages
impl RefUnwindSafe for BlockUsages
impl Send for BlockUsages
impl Sync for BlockUsages
impl Unpin for BlockUsages
impl UnwindSafe for BlockUsages
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> 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