Diffstat (limited to 'src/walk.rs')
| -rw-r--r-- | src/walk.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/walk.rs b/src/walk.rs index 7b2ddc1..9d218b1 100644 --- a/src/walk.rs +++ b/src/walk.rs @@ -1,16 +1,20 @@ -use crate::Visitor; +use crate::protocol::Implementer; pub trait WalkOnce<'ctx> { type Error; type Value; - fn walk_once(self, visitor: &mut dyn Visitor<'ctx>) -> Result<Self::Value, Self::Error>; + fn walk_once(self, visitor: &mut dyn Implementer<'ctx>) -> Result<Self::Value, Self::Error>; } pub trait WalkMut<'borrow, 'ctx>: WalkOnce<'ctx> { - fn walk_mut(&'borrow mut self, visitor: &mut dyn Visitor<'ctx>) -> Result<Self::Value, Self::Error>; + fn walk_mut( + &'borrow mut self, + visitor: &mut dyn Implementer<'ctx>, + ) -> Result<Self::Value, Self::Error>; } pub trait Walk<'borrow, 'ctx>: WalkMut<'borrow, 'ctx> { - fn walk(&'borrow self, visitor: &mut dyn Visitor<'ctx>) -> Result<Self::Value, Self::Error>; + fn walk(&'borrow self, visitor: &mut dyn Implementer<'ctx>) + -> Result<Self::Value, Self::Error>; } |