@@ -11,8 +11,7 @@ pub trait Accept {
|
||||
Self: Sized;
|
||||
}
|
||||
|
||||
pub trait DefaultAccept<V: Visit<Self>>: Accept + Sized
|
||||
{
|
||||
pub trait DefaultAccept<V: Visit<Self>>: Accept + Sized {
|
||||
fn default_accept(&self, visitor: &mut V) -> V::Out;
|
||||
}
|
||||
|
||||
@@ -35,7 +34,7 @@ macro_rules! empty_visitor {
|
||||
type Out = ();
|
||||
fn visit(&mut self, _: &$default) -> Self::Out {}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! impl_accept {
|
||||
|
||||
Reference in New Issue
Block a user