Lines Matching refs:UnknownValue
17 pub enum UnknownValue { enum
28 impl UnknownValue { impl
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()
45 pub fn sint32(i: i32) -> UnknownValue { in sint32() argument
46 UnknownValue::Varint(encode_zig_zag_32(i) as u64) in sint32()
50 pub fn sint64(i: i64) -> UnknownValue { in sint64() argument
51 UnknownValue::Varint(encode_zig_zag_64(i)) in sint64()
98 pub fn add_value(&mut self, value: UnknownValue) { in add_value() argument
100 UnknownValue::Fixed64(fixed64) => self.fixed64.push(fixed64), in add_value()
101 UnknownValue::Fixed32(fixed32) => self.fixed32.push(fixed32), in add_value()
102 UnknownValue::Varint(varint) => self.varint.push(varint), in add_value()
103 UnknownValue::LengthDelimited(length_delimited) => { in add_value()
242 pub fn add_value(&mut self, number: u32, value: UnknownValue) { in add_value() argument