3 // ignore-tidy-linelength
9 pub trait AsExpression<T> {
10 type Expression: Expression<SqlType = T>;
11 fn as_expression(self) -> Self::Expression;
14 // @has foo/type.AsExprOf.html
15 // @has - '//*[@class="rust typedef"]' 'type AsExprOf<Item, Type> = <Item as AsExpression<Type>>::Expression;'
16 pub type AsExprOf<Item, Type> = <Item as AsExpression<Type>>::Expression;