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