xlsynth 0.65.0

Accelerated Hardware Synthesis (XLS/XLSynth) via Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: Apache-2.0

#[derive(Debug)]
pub struct XlsynthError(pub String);

impl std::fmt::Display for XlsynthError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "xlsynth error: {}", self.0)
    }
}

impl std::error::Error for XlsynthError {}

impl From<xlsynth_vast::VastError> for XlsynthError {
    fn from(error: xlsynth_vast::VastError) -> Self {
        Self(error.to_string())
    }
}