use anyhow::Context as _;
use xylem::{DefaultContext, NoArgs, Xylem};
enum Schema {}
impl xylem::Schema for Schema {
type Context = xylem::DefaultContext;
type Error = anyhow::Error;
}
impl Xylem<Schema> for Vec<i32> {
type From = Vec<String>; type Args = NoArgs;
fn convert_impl(
from: Self::From,
_: &mut DefaultContext,
_: &Self::Args,
) -> Result<Self, anyhow::Error> {
from.into_iter().map(|item| item.parse().context("Parse error")).collect()
}
}
#[test]
fn test_cross_ref() {}