1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use std::ops::Range;

use xylem::Xylem;

use crate::Schema;

impl<T: Xylem<Schema>> Xylem<Schema> for Range<T> {
    type From = Self;
    type Args = xylem::NoArgs;

    fn convert_impl(
        from: Self,
        _: &mut xylem::DefaultContext,
        _: &Self::Args,
    ) -> anyhow::Result<Self> {
        Ok(from)
    }
}

impl_xylem_for_self!(bool);
impl_xylem_for_self!(u32);
impl_xylem_for_self!(i32);
impl_xylem_for_self!(f64);