Pass variant index to visit_enum_simple

This commit is contained in:
Erick Tryzelaar committed 2015-07-30 08:06:04 -07:00
1 parent 5dc245d2ce
commit 0348a3914d
6 files changed
+9 -3

No files matched your search

+4 -3
View File
@@ -127,9 +127,10 @@ pub trait Serializer {
#[inline]
fn visit_enum_simple<T>(&mut self,
_name: &str,
_variant: &str,
_value: T) -> Result<(), Self::Error>
name: &'static str,
variant_index: usize,
variant: &'static str,
value: T) -> Result<(), Self::Error>
where T: Serialize;
fn visit_none(&mut self) -> Result<(), Self::Error>;