pub struct ExprFormatter<'a> {
    pub db: &'a (dyn SemanticGroup + 'static),
    pub function_id: FunctionWithBodyId,
}
Expand description

Holds all the information needed for formatting expressions. Acts like a “db” for DebugWithDb.

Fields§

§db: &'a (dyn SemanticGroup + 'static)§function_id: FunctionWithBodyId

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Retrieves the ConcreteVariant for a ConcreteEnumId and a Variant.
Retrieves all the ConcreteVariants for a ConcreteEnumId.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.