pub struct LoweredFormatter<'db> {
pub db: &'db dyn LoweringGroup,
pub variables: &'db Arena<Variable>,
pub include_usage_location: bool,
}
Expand description
Holds all the information needed for formatting lowered representations. Acts like a “db” for DebugWithDb.
Fields§
§db: &'db dyn LoweringGroup
§variables: &'db Arena<Variable>
§include_usage_location: bool
Implementations§
source§impl<'db> LoweredFormatter<'db>
impl<'db> LoweredFormatter<'db>
pub fn new(db: &'db dyn LoweringGroup, variables: &'db Arena<Variable>) -> Self
Trait Implementations§
source§impl DebugWithDb<LoweredFormatter<'_>> for BlockId
impl DebugWithDb<LoweredFormatter<'_>> for BlockId
source§impl DebugWithDb<LoweredFormatter<'_>> for FlatBlock
impl DebugWithDb<LoweredFormatter<'_>> for FlatBlock
source§impl DebugWithDb<LoweredFormatter<'_>> for FlatBlockEnd
impl DebugWithDb<LoweredFormatter<'_>> for FlatBlockEnd
source§impl DebugWithDb<LoweredFormatter<'_>> for FlatLowered
impl DebugWithDb<LoweredFormatter<'_>> for FlatLowered
source§impl DebugWithDb<LoweredFormatter<'_>> for VariableId
impl DebugWithDb<LoweredFormatter<'_>> for VariableId
source§impl DebugWithDb<LoweredFormatter<'_>> for MatchArm
impl DebugWithDb<LoweredFormatter<'_>> for MatchArm
source§impl DebugWithDb<LoweredFormatter<'_>> for MatchEnumInfo
impl DebugWithDb<LoweredFormatter<'_>> for MatchEnumInfo
source§impl DebugWithDb<LoweredFormatter<'_>> for MatchEnumValue
impl DebugWithDb<LoweredFormatter<'_>> for MatchEnumValue
source§impl DebugWithDb<LoweredFormatter<'_>> for MatchExternInfo
impl DebugWithDb<LoweredFormatter<'_>> for MatchExternInfo
source§impl DebugWithDb<LoweredFormatter<'_>> for MatchInfo
impl DebugWithDb<LoweredFormatter<'_>> for MatchInfo
source§impl DebugWithDb<LoweredFormatter<'_>> for Statement
impl DebugWithDb<LoweredFormatter<'_>> for Statement
source§impl DebugWithDb<LoweredFormatter<'_>> for StatementCall
impl DebugWithDb<LoweredFormatter<'_>> for StatementCall
source§impl DebugWithDb<LoweredFormatter<'_>> for StatementConst
impl DebugWithDb<LoweredFormatter<'_>> for StatementConst
source§impl DebugWithDb<LoweredFormatter<'_>> for StatementDesnap
impl DebugWithDb<LoweredFormatter<'_>> for StatementDesnap
source§impl DebugWithDb<LoweredFormatter<'_>> for StatementEnumConstruct
impl DebugWithDb<LoweredFormatter<'_>> for StatementEnumConstruct
source§impl DebugWithDb<LoweredFormatter<'_>> for StatementSnapshot
impl DebugWithDb<LoweredFormatter<'_>> for StatementSnapshot
source§impl DebugWithDb<LoweredFormatter<'_>> for StatementStructConstruct
impl DebugWithDb<LoweredFormatter<'_>> for StatementStructConstruct
source§impl DebugWithDb<LoweredFormatter<'_>> for StatementStructDestructure
impl DebugWithDb<LoweredFormatter<'_>> for StatementStructDestructure
source§impl DebugWithDb<LoweredFormatter<'_>> for VarRemapping
impl DebugWithDb<LoweredFormatter<'_>> for VarRemapping
source§impl DebugWithDb<LoweredFormatter<'_>> for VarUsage
impl DebugWithDb<LoweredFormatter<'_>> for VarUsage
Auto Trait Implementations§
impl<'db> Freeze for LoweredFormatter<'db>
impl<'db> !RefUnwindSafe for LoweredFormatter<'db>
impl<'db> !Send for LoweredFormatter<'db>
impl<'db> !Sync for LoweredFormatter<'db>
impl<'db> Unpin for LoweredFormatter<'db>
impl<'db> !UnwindSafe for LoweredFormatter<'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<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