use crate::{effect::Effect, Walk, WalkerTypes};
use super::value::{BorrowWalker, ValueWalker};
impl<'ctx, M, E: Effect<'ctx>> Walk<'ctx, M, E> for bool {
type Walker = ValueWalker<bool>;
fn into_walker(self) -> Self::Walker {
ValueWalker::new(self)
}
}
impl WalkerTypes for bool {
type Error = <ValueWalker<bool> as WalkerTypes>::Error;
type Output = <ValueWalker<bool> as WalkerTypes>::Output;
}
impl<'ctx, M, E: Effect<'ctx>> Walk<'ctx, M, E> for &'ctx bool {
type Walker = ValueWalker<bool>;
fn into_walker(self) -> Self::Walker {
ValueWalker::new(*self)
}
}
impl<'ctx> WalkerTypes for &'ctx bool {
type Error = <ValueWalker<bool> as WalkerTypes>::Error;
type Output = <ValueWalker<bool> as WalkerTypes>::Output;
}