Enum protobuf::UnknownValue
source · [−]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
sourceimpl 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 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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UnknownValue
impl Send for UnknownValue
impl Sync for UnknownValue
impl Unpin for UnknownValue
impl UnwindSafe for UnknownValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more