2017-04-12 11:14:54 -05:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
pub trait Expression {
|
|
|
|
type SqlType;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait AsExpression<T> {
|
|
|
|
type Expression: Expression<SqlType = T>;
|
|
|
|
fn as_expression(self) -> Self::Expression;
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has foo/type.AsExprOf.html
|
2023-01-14 11:58:55 -06:00
|
|
|
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'type AsExprOf<Item, Type> = <Item as AsExpression<Type>>::Expression;'
|
2017-04-12 11:14:54 -05:00
|
|
|
pub type AsExprOf<Item, Type> = <Item as AsExpression<Type>>::Expression;
|