pub enum UnknownValue {
Fixed32(u32),
Fixed64(u64),
Varint(u64),
LengthDelimited(Vec<u8>),
}
Expand description
Unknown value.
See UnknownFields
for the explanations.
Variants§
Fixed32(u32)
32-bit unknown (e. g. fixed32
or float
)
Fixed64(u64)
64-bit unknown (e. g. fixed64
or double
)
Varint(u64)
Varint unknown (e. g. int32
or bool
)
LengthDelimited(Vec<u8>)
Length-delimited unknown (e. g. message
or string
)
Implementations§
Source§impl UnknownValue
impl UnknownValue
Sourcepub fn get_ref<'s>(&'s self) -> UnknownValueRef<'s>
pub fn get_ref<'s>(&'s self) -> UnknownValueRef<'s>
As ref
Sourcepub fn int32(i: i32) -> UnknownValue
pub fn int32(i: i32) -> UnknownValue
Construct unknown value from int64
value.
Sourcepub fn int64(i: i64) -> UnknownValue
pub fn int64(i: i64) -> UnknownValue
Construct unknown value from int64
value.
Sourcepub fn sint32(i: i32) -> UnknownValue
pub fn sint32(i: i32) -> UnknownValue
Construct unknown value from sint32
value.
Sourcepub fn sint64(i: i64) -> UnknownValue
pub fn sint64(i: i64) -> UnknownValue
Construct unknown value from sint64
value.
Sourcepub fn float(f: f32) -> UnknownValue
pub fn float(f: f32) -> UnknownValue
Construct unknown value from float
value.
Sourcepub fn double(f: f64) -> UnknownValue
pub fn double(f: f64) -> UnknownValue
Construct unknown value from double
value.
Sourcepub fn sfixed32(i: i32) -> UnknownValue
pub fn sfixed32(i: i32) -> UnknownValue
Construct unknown value from sfixed32
value.
Sourcepub fn sfixed64(i: i64) -> UnknownValue
pub fn sfixed64(i: i64) -> UnknownValue
Construct unknown value from sfixed64
value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnknownValue
impl RefUnwindSafe for UnknownValue
impl Send for UnknownValue
impl Sync for UnknownValue
impl Unpin for UnknownValue
impl UnwindSafe for UnknownValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more