Enum protobuf::reflect::ReflectValueBox [−][src]
pub enum ReflectValueBox {
U32(u32),
U64(u64),
I32(i32),
I64(i64),
F32(f32),
F64(f64),
Bool(bool),
String(String),
Bytes(Vec<u8>),
Enum(EnumDescriptor, i32),
Message(Box<dyn MessageDyn>),
}
Expand description
Owner value of any elementary type
Variants
U32(u32)
Tuple Fields
0: u32
u32
U64(u64)
Tuple Fields
0: u64
u64
I32(i32)
Tuple Fields
0: i32
i32
I64(i64)
Tuple Fields
0: i64
i64
F32(f32)
Tuple Fields
0: f32
f32
F64(f64)
Tuple Fields
0: f64
f64
Bool(bool)
Tuple Fields
0: bool
bool
String(String)
Tuple Fields
0: String
string
Bytes(Vec<u8>)
bytes
Enum(EnumDescriptor, i32)
enum
Message(Box<dyn MessageDyn>)
Tuple Fields
0: Box<dyn MessageDyn>
message
Implementations
Type of this value.
As ref
Downcast to real typed value.
For enum
V
can be either V: ProtobufEnum
or V: ProtobufEnumOrUnknown<E>
.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ReflectValueBox
impl Send for ReflectValueBox
impl Sync for ReflectValueBox
impl Unpin for ReflectValueBox
impl !UnwindSafe for ReflectValueBox
Blanket Implementations
Mutably borrows from an owned value. Read more