surrealdb_expr/expr/convert/start.rs
1//! `sql` -> `expr` conversions for [`crate::sql::start`].
2//!
3//! Lives in core rather than beside the AST: `surrealdb-sql` sits below
4//! core, so it cannot name `expr` types.
5
6use crate::sql::start::*;
7
8impl From<Start> for crate::expr::Start {
9 fn from(value: Start) -> Self {
10 crate::expr::Start(value.0.into())
11 }
12}
13
14impl From<crate::expr::Start> for Start {
15 fn from(value: crate::expr::Start) -> Self {
16 Start(value.0.into())
17 }
18}