We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Decoder::read_enum_variant
1 parent b51deba commit 37c9e45Copy full SHA for 37c9e45
compiler/rustc_serialize/src/serialize.rs
@@ -84,6 +84,11 @@ pub trait Decoder {
84
fn read_char(&mut self) -> char;
85
fn read_str(&mut self) -> &str;
86
fn read_raw_bytes(&mut self, len: usize) -> &[u8];
87
+
88
+ // Although there is an `emit_enum_variant` method in `Encoder`, the code
89
+ // patterns in decoding are different enough to encoding that there is no
90
+ // need for a corresponding `read_enum_variant` method here.
91
92
fn peek_byte(&self) -> u8;
93
fn position(&self) -> usize;
94
}
0 commit comments