pub trait ExprHumanizer: Debug {
    fn humanize_id(&self, id: GlobalId) -> Option<String>;
    fn humanize_id_unqualified(&self, id: GlobalId) -> Option<String>;
    fn humanize_scalar_type(&self, ty: &ScalarType) -> String;

    fn humanize_column_type(&self, typ: &ColumnType) -> String { ... }
}
Expand description

A trait for humanizing components of an expression.

This will be most often used as part of the rendering context type for various Display$Format implementation.

Required Methods§

Attempts to return the a human-readable string for the relation identified by id.

Same as above, but without qualifications, e.g., only foo for materialize.public.foo.

Returns a human-readable name for the specified scalar type.

Provided Methods§

Returns a human-readable name for the specified scalar type.

Trait Implementations§

Converts this type into a shared reference of the (usually inferred) input type.
Converts this type into a shared reference of the (usually inferred) input type.

Implementors§