Enum protobuf::reflect::ReflectValueRef[][src]

pub enum ReflectValueRef<'a> {
    U32(u32),
    U64(u64),
    I32(i32),
    I64(i64),
    F32(f32),
    F64(f64),
    Bool(bool),
    String(&'a str),
    Bytes(&'a [u8]),
    Enum(&'static EnumValueDescriptor),
    Message(&'a dyn Message),
}
Expand description

A reference to a value

Variants

U32

u32

Tuple Fields of U32

0: u32
U64

u64

Tuple Fields of U64

0: u64
I32

i32

Tuple Fields of I32

0: i32
I64

i64

Tuple Fields of I64

0: i64
F32

f32

Tuple Fields of F32

0: f32
F64

f64

Tuple Fields of F64

0: f64
Bool

bool

Tuple Fields of Bool

0: bool
String

string

Tuple Fields of String

0: &'a str
Bytes

bytes

Tuple Fields of Bytes

0: &'a [u8]
Enum

enum

Tuple Fields of Enum

0: &'static EnumValueDescriptor
Message

message

Tuple Fields of Message

0: &'a dyn Message

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.