wesley-core 0.0.4

Wesley Rust Core - Deterministic compiler kernel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Lowering port definitions.

use crate::domain::error::WesleyError;
use crate::domain::ir::WesleyIR;
use async_trait::async_trait;

/// Port for lowering GraphQL SDL to Wesley IR.
#[async_trait]
pub trait LoweringPort: Send + Sync {
    /// Lowers the given SDL string to Wesley IR.
    async fn lower_sdl(&self, sdl: &str) -> Result<WesleyIR, WesleyError>;
}