mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-11 18:37:05 +00:00
Pass variant index to visit_enum_simple
This commit is contained in:
1 parent
5dc245d2ce
commit
0348a3914d
6 files changed
+9
-3
No files matched your search
@@ -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>;
|
||||
|
||||
Reference in new issue
Block a user