Pass variant index to visit_enum_simple

This commit is contained in:
Erick Tryzelaar
2015-07-29 14:05:51 -07:00
parent 5dc245d2ce
commit 0348a3914d
6 changed files with 9 additions and 3 deletions
+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>;