Trait expr::ExprHumanizer [−][src]
pub trait ExprHumanizer: Debug {
fn humanize_id(&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.
Required methods
fn humanize_id(&self, id: GlobalId) -> Option<String>
fn humanize_id(&self, id: GlobalId) -> Option<String>
Attempts to return the a human-readable string for the relation
identified by id
.
fn humanize_scalar_type(&self, ty: &ScalarType) -> String
fn humanize_scalar_type(&self, ty: &ScalarType) -> String
Returns a human-readable name for the specified scalar type.
Provided methods
fn humanize_column_type(&self, typ: &ColumnType) -> String
fn humanize_column_type(&self, typ: &ColumnType) -> String
Returns a human-readable name for the specified scalar type.