Lines Matching refs:UnknownValueRef
35 pub fn get_ref<'s>(&'s self) -> UnknownValueRef<'s> { in get_ref()
37 UnknownValue::Fixed32(fixed32) => UnknownValueRef::Fixed32(fixed32), in get_ref()
38 UnknownValue::Fixed64(fixed64) => UnknownValueRef::Fixed64(fixed64), in get_ref()
39 UnknownValue::Varint(varint) => UnknownValueRef::Varint(varint), in get_ref()
40 UnknownValue::LengthDelimited(ref bytes) => UnknownValueRef::LengthDelimited(&bytes), in get_ref()
58 pub enum UnknownValueRef<'o> { enum
69 impl<'o> UnknownValueRef<'o> { implementation
73 UnknownValueRef::Fixed32(_) => wire_format::WireTypeFixed32, in wire_type()
74 UnknownValueRef::Fixed64(_) => wire_format::WireTypeFixed64, in wire_type()
75 UnknownValueRef::Varint(_) => wire_format::WireTypeVarint, in wire_type()
76 UnknownValueRef::LengthDelimited(_) => wire_format::WireTypeLengthDelimited, in wire_type()
121 type Item = UnknownValueRef<'a>;
138 type Item = UnknownValueRef<'o>;
140 fn next(&mut self) -> Option<UnknownValueRef<'o>> { in next()
143 return Some(UnknownValueRef::Fixed32(*fixed32.unwrap())); in next()
147 return Some(UnknownValueRef::Fixed64(*fixed64.unwrap())); in next()
151 return Some(UnknownValueRef::Varint(*varint.unwrap())); in next()
155 return Some(UnknownValueRef::LengthDelimited(&length_delimited.unwrap())); in next()